Add gosimple linter (#9590)

This commit is contained in:
Kris Hicks
2020-12-09 11:05:18 -08:00
committed by GitHub
parent 8333ab9f80
commit 85ed8ddd4f
77 changed files with 111 additions and 186 deletions

View File

@@ -296,16 +296,11 @@ func (a *Attribute) Comparable(b *Attribute) bool {
}
if a.String != nil {
if b.String != nil {
return true
}
return false
return b.String != nil
}
if a.Bool != nil {
if b.Bool != nil {
return true
}
return false
return b.Bool != nil
}
return true