refactor: prefer destructuring approach

This commit is contained in:
jamesgeorge007 2020-01-19 13:28:22 +05:30
parent ee91b27e66
commit 357e707e2c
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ const contextifySourceUrl = (context, source, associatedObjectForCache) => {
*/
const contextifySourceMap = (context, sourceMap, associatedObjectForCache) => {
if (!Array.isArray(sourceMap.sources)) return sourceMap;
const sourceRoot = sourceMap.sourceRoot;
const { sourceRoot } = sourceMap;
/** @type {function(string): string} */
const mapper = !sourceRoot
? source => source