Skip to content

Commit

Permalink
dev: clean up and used iota for exit codes (#2366)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev authored Nov 18, 2021
1 parent ef92894 commit b67af9a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions pkg/exitcodes/exitcodes.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package exitcodes

const (
Success = 0
IssuesFound = 1
WarningInTest = 2
Failure = 3
Timeout = 4
NoGoFiles = 5
NoConfigFileDetected = 6
ErrorWasLogged = 7
Success = iota
IssuesFound
WarningInTest
Failure
Timeout
NoGoFiles
NoConfigFileDetected
ErrorWasLogged
)

type ExitError struct {
Expand All @@ -30,5 +30,3 @@ var (
Code: Failure,
}
)

// 1

0 comments on commit b67af9a

Please sign in to comment.