浏览代码

use the sync function instead of the async function

Dustin Utecht 6 年之前
父节点
当前提交
a231b2beb0
共有 1 个文件被更改,包括 1 次插入2 次删除
  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('## '), () => {})
   }
 }