Drop unused arg

Summary: Small refactor

Reviewed By: mjesun

Differential Revision: D6884242

fbshipit-source-id: b811238c91b0e82d8b25420aa1b463f9d8293482
This commit is contained in:
Peter van der Zee 2018-02-05 00:59:24 -08:00 committed by Facebook Github Bot
parent 23e4d7abae
commit 92e9cfa050

View File

@ -33,11 +33,7 @@ function buildBundle(
});
}
function createCodeWithMap(
map: string,
dev: boolean,
sourceMapSourcesRoot: string,
): string {
function createCodeWithMap(map: string, sourceMapSourcesRoot: string): string {
const sourceMap = relativizeSourceMap(
(JSON.parse(map): MetroSourceMap),
sourceMapSourcesRoot,
@ -53,7 +49,6 @@ function saveBundleAndMap(
const {
bundleOutput,
bundleEncoding: encoding,
dev,
sourcemapOutput,
sourcemapSourcesRoot,
} = options;
@ -61,7 +56,7 @@ function saveBundleAndMap(
let {map} = bundle;
if (sourcemapSourcesRoot !== undefined) {
log('start');
map = createCodeWithMap(map, !!dev, sourcemapSourcesRoot);
map = createCodeWithMap(map, sourcemapSourcesRoot);
log('finish');
}