Skip to content

Commit

Permalink
Use template literals more
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 19, 2017
1 parent 4b6323e commit a2d7973
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 93 deletions.
4 changes: 2 additions & 2 deletions lib/process-adapter.js
Expand Up @@ -85,8 +85,8 @@ exports.installPrecompilerHook = () => {
const precompiled = opts.precompiled[filename];

if (precompiled) {
sourceMapCache.set(filename, path.join(cacheDir, precompiled + '.js.map'));
return fs.readFileSync(path.join(cacheDir, precompiled + '.js'), 'utf8');
sourceMapCache.set(filename, path.join(cacheDir, `${precompiled}.js.map`));
return fs.readFileSync(path.join(cacheDir, `${precompiled}.js`), 'utf8');
}

return null;
Expand Down

0 comments on commit a2d7973

Please sign in to comment.