| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e2df381 commit 62e28f1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -166,11 +166,11 @@ if ( | |||
| 166 | 166 | const entryPoint = resolve(process.argv[2]); | |
| 167 | 167 | const stats = statSync(entryPoint, { throwIfNoEntry: false }); | |
| 168 | 168 | ||
| 169 | - function onError(e) { | ||
| 169 | + const onError = (e) => { | ||
| 170 | 170 | console.log(USAGE_STR); | |
| 171 | 171 | console.error(e); | |
| 172 | 172 | process.exitCode = 1; | |
| 173 | - } | ||
| 173 | + }; | ||
| 174 | 174 | if (stats?.isDirectory()) { | |
| 175 | 175 | SPAWN_OPTIONS.cwd = entryPoint; | |
| 176 | 176 | checkFiles(...findScriptFilesRecursively(entryPoint)).catch(onError); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments