mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Simplify resolving filePath in perf/perf.js. [ci skip]
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
if (!amd) {
|
if (!amd) {
|
||||||
try {
|
try {
|
||||||
return require('fs').realpathSync(result);
|
return require.resolve(result);
|
||||||
} catch(e) { }
|
} catch(e) { }
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -71,10 +71,6 @@
|
|||||||
_._ || _
|
_._ || _
|
||||||
));
|
));
|
||||||
|
|
||||||
try {
|
|
||||||
filePath = require.resolve(filePath);
|
|
||||||
} catch(e) { }
|
|
||||||
|
|
||||||
/** Used to access the Firebug Lite panel (set by `run`) */
|
/** Used to access the Firebug Lite panel (set by `run`) */
|
||||||
var fbPanel;
|
var fbPanel;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user