mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/** Used to resolve the decompiled source of functions. */
|
||||
const funcToString = Function.prototype.toString;
|
||||
const funcToString = Function.prototype.toString
|
||||
|
||||
/**
|
||||
* Converts `func` to its source code.
|
||||
@@ -11,13 +11,13 @@ const funcToString = Function.prototype.toString;
|
||||
function toSource(func) {
|
||||
if (func != null) {
|
||||
try {
|
||||
return funcToString.call(func);
|
||||
return funcToString.call(func)
|
||||
} catch (e) {}
|
||||
try {
|
||||
return `${ func }`;
|
||||
return `${ func }`
|
||||
} catch (e) {}
|
||||
}
|
||||
return '';
|
||||
return ''
|
||||
}
|
||||
|
||||
export default toSource;
|
||||
export default toSource
|
||||
|
||||
Reference in New Issue
Block a user