Skip to content

Commit

Permalink
Cleanup const declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Jan 28, 2021
1 parent 741a019 commit 67fa25d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions internal/display/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ import (

const (
notApplicable = "N/A"

logCategorySuccess logCategory = iota
logCategoryWarning
logCategoryFailure
logCategoryUnknown
)

type logCategory int

var _ View = &logView{}

type logView struct {
Expand Down Expand Up @@ -137,15 +144,6 @@ func (v *logView) Extras() []string {
return []string{strings.Join(res, "\n")}
}

type logCategory int

const (
logCategorySuccess logCategory = iota
logCategoryWarning
logCategoryFailure
logCategoryUnknown
)

func (v *logView) category() logCategory {
if strings.HasPrefix(v.GetType(), "s") {
return logCategorySuccess
Expand Down

0 comments on commit 67fa25d

Please sign in to comment.