| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,8 @@ vals.forEach((v) => { | |||
| 36 | 36 | // These values are OK and should not throw synchronously. | |
| 37 | 37 | // Only testing for 'hostname' validation so ignore connection errors. | |
| 38 | 38 | const dontCare = () => {}; | |
| 39 | - ['', undefined, null].forEach((v) => { | ||
| 39 | + const values = ['', undefined, null]; | ||
| 40 | + for (const v of values) { | ||
| 40 | 41 | http.request({ hostname: v }).on('error', dontCare).end(); | |
| 41 | 42 | http.request({ host: v }).on('error', dontCare).end(); | |
| 42 | - }); | ||
| 43 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments