Simplify resolving filePath in perf/perf.js. [ci skip]

This commit is contained in:
John-David Dalton
2014-01-29 00:26:40 -08:00
parent 5b9a8e9bf9
commit 138ecc4ee1

View File

@@ -44,7 +44,7 @@
if (!amd) {
try {
return require('fs').realpathSync(result);
return require.resolve(result);
} catch(e) { }
}
return result;
@@ -71,10 +71,6 @@
_._ || _
));
try {
filePath = require.resolve(filePath);
} catch(e) { }
/** Used to access the Firebug Lite panel (set by `run`) */
var fbPanel;