Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #839 from am11/master
Browse files Browse the repository at this point in the history
Code: Skips path.resolve when outFile is not set
  • Loading branch information
am11 committed Apr 6, 2015
2 parents e403fe3 + 998ecbe commit 2d22d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function getSourceMap(options) {
sourceMap = options.outFile + '.map';
}

return sourceMap ? path.resolve(sourceMap) : null;
return sourceMap && typeof sourceMap === 'string' ? path.resolve(sourceMap) : null;
}

/**
Expand Down

0 comments on commit 2d22d9c

Please # to comment.