Skip to content

Commit

Permalink
simplify validColor logic
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Downs <brian.downs@gmail.com>
  • Loading branch information
briandowns committed May 3, 2021
1 parent 5d7e040 commit 2cb1a33
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spinner.go
Expand Up @@ -163,10 +163,7 @@ var colorAttributeMap = map[string]color.Attribute{

// validColor will make sure the given color is actually allowed.
func validColor(c string) bool {
if validColors[c] {
return true
}
return false
return validColors[c]
}

// Spinner struct to hold the provided options.
Expand Down

0 comments on commit 2cb1a33

Please sign in to comment.