Add and fix exhaustive
This commit is contained in:
parent
0315f55fcd
commit
19cd7a4eac
2 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,6 @@ linters:
|
|||
- forbidigo
|
||||
- dupl
|
||||
- goconst
|
||||
- exhaustive
|
||||
- varnamelen
|
||||
|
||||
# We might want to enable this, but it might be a lot of work
|
||||
|
|
|
@ -23,6 +23,8 @@ func main() {
|
|||
colors = true
|
||||
case termcolor.LevelBasic:
|
||||
colors = true
|
||||
case termcolor.LevelNone:
|
||||
colors = false
|
||||
default:
|
||||
// no color, return text as is.
|
||||
colors = false
|
||||
|
|
Loading…
Reference in a new issue