Skip to content

Commit 745fa7d

Browse files
committed
[FIX] Fix lint warning. Edit lint settings.
1 parent 9eae285 commit 745fa7d

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

base/base.go

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,17 @@ func BaseParser(
3232
thereExists := false
3333
rewind := false
3434
qty := qtyOnce
35-
if props != nil {
36-
for _, p := range props {
37-
switch w := p.(type) {
38-
case Times:
39-
qty = w
40-
case Negative:
41-
negative = true
42-
case ThereExists:
43-
thereExists = true
44-
case Rewind:
45-
rewind = true
46-
}
35+
36+
for _, p := range props {
37+
switch w := p.(type) {
38+
case Times:
39+
qty = w
40+
case Negative:
41+
negative = true
42+
case ThereExists:
43+
thereExists = true
44+
case Rewind:
45+
rewind = true
4746
}
4847
}
4948

staticcheck.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
checks = ["inherit", "-ST1001", "-S1019"]
2+
checks = ["inherit", "-ST1001", "-ST1005", "-S1019"]

0 commit comments

Comments
 (0)