Skip to content

Commit 665f9fc

Browse files
committed
fix: ignore empty files
1 parent 09f4981 commit 665f9fc

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.1.1
4+
5+
- fix: ignore empty files
6+
37
## v1.1.0
48

59
`2021.02.19`

dist/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5974,6 +5974,9 @@ async function run() {
59745974

59755975
if (!result) {
59765976
const changeFiles = await getFiles();
5977+
if (changeFiles.length == 0) {
5978+
return false;
5979+
}
59775980
for (let i = 0; i < changeFiles.length; i += 1) {
59785981
if (
59795982
doVerifyFile(

src/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ async function run() {
6565

6666
if (!result) {
6767
const changeFiles = await getFiles();
68+
if (changeFiles.length == 0) {
69+
return false;
70+
}
6871
for (let i = 0; i < changeFiles.length; i += 1) {
6972
if (
7073
doVerifyFile(

0 commit comments

Comments
 (0)