浏览代码

Merge pull request #4397 from wenzhixin/fix/tools-clear-issue

Use the sync function instead of the async function
Dustin Utecht 6 年之前
父节点
当前提交
c82f2c1e02
共有 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('## '))
   }
 }