fix: possible error in console
Massimo Melina committed
Sep 24, 2023 at 12:04 UTC
fca9c57f989e35ed39ef7e899ee3462d39551fa4
1 file changed
+3
-4
src/listen.ts
+3
-4
@@ -260,8 +260,7 @@ export async function getUrls() {
260
}
261
262
function printUrls(srvName: string) {
263
- getUrls().then(urls => {
264
- for (const url of urls[srvName]!)
265
- console.log('serving on', url)
266
- })
263
+ getUrls().then(urls =>
264
+ _.each(urls[srvName], url =>
265
+ console.log('serving on', url)))
266
}