Browse Source

use the sync function instead of the async function

Dustin Utecht 6 years ago
parent
commit
a231b2beb0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tools/check-api.js

+ 1 - 2
tools/check-api.js

@@ -53,8 +53,7 @@ class API {
         console.log(error)
       })
     }
-
-    fs.writeFile(file, outLines.join('## '), () => {})
+    fs.writeFileSync(file, outLines.join('## '), () => {})
   }
 }