We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 927a13e commit 3288680Copy full SHA for 3288680
src/command/prettier-format.ts
@@ -37,6 +37,7 @@ export const prettierFormat = async (
37
38
// 获取需要处理的文件
39
const files = await getEveryFilesBySuffixes(cwd, staged, paths, suffix);
40
+ if (files.length === 0) true;
41
42
// 运行 write 命令,重写代码风格
43
await execCommand(
0 commit comments