Skip to content

Commit b67af9a

Browse files
dev: clean up and used iota for exit codes (#2366)
1 parent ef92894 commit b67af9a

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

pkg/exitcodes/exitcodes.go

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package exitcodes
22

33
const (
4-
Success = 0
5-
IssuesFound = 1
6-
WarningInTest = 2
7-
Failure = 3
8-
Timeout = 4
9-
NoGoFiles = 5
10-
NoConfigFileDetected = 6
11-
ErrorWasLogged = 7
4+
Success = iota
5+
IssuesFound
6+
WarningInTest
7+
Failure
8+
Timeout
9+
NoGoFiles
10+
NoConfigFileDetected
11+
ErrorWasLogged
1212
)
1313

1414
type ExitError struct {
@@ -30,5 +30,3 @@ var (
3030
Code: Failure,
3131
}
3232
)
33-
34-
// 1

0 commit comments

Comments
 (0)