Commit a6a7868

Anton Medvedev <anton@medv.io>
2021-05-07 18:35:29
Fix code formatting
1 parent fbf3351
Changed files (1)
index.mjs
@@ -116,8 +116,11 @@ export async function question(query, options) {
 
 export async function fetch(url, init) {
   if ($.verbose) {
-    if (typeof init !== 'undefined') console.log('$', colorize(`fetch ${url}`), init)
-    else console.log('$', colorize(`fetch ${url}`))
+    if (typeof init !== 'undefined') {
+      console.log('$', colorize(`fetch ${url}`), init)
+    } else {
+      console.log('$', colorize(`fetch ${url}`))
+    }
   }
   return nodeFetch(url, init)
 }