mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Add gosimple linter (#9590)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user