Skip to content

Commit decf635

Browse files
committed
refactor(tpl/js): remove redundant check logic
1 parent 2320100 commit decf635

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tpl/asset/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
firstCheckA = a;
100100
} else if (firstCheckA === a) {
101101
return;
102-
} else if (firstCheckA && !secondCheckA) {
103-
secondCheckA = a
102+
} else if (!secondCheckA) {
103+
secondCheckA = a;
104104
} else if (secondCheckA === a) {
105105
return;
106106
}

src/tpl/asset/main.js.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ if (!firstCheckA) {
9292
firstCheckA = a;
9393
} else if (firstCheckA === a) {
9494
return;
95-
} else if (firstCheckA && !secondCheckA) {
96-
secondCheckA = a
95+
} else if (!secondCheckA) {
96+
secondCheckA = a;
9797
} else if (secondCheckA === a) {
9898
return;
9999
}

0 commit comments

Comments
 (0)