mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Simplify resolving filePath in perf/perf.js. [ci skip]
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user