Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
Signed-off-by: Marcela Melara <marcela.melara@intel.com>
  • Loading branch information
marcelamelara committed Aug 30, 2024
1 parent 1e4b751 commit 5828012
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scai-gen/cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,7 @@ func isSupportedPredicateType(predicateType string) bool {
return v == version
})

if idx > -1 {
return true
}
return false
if idx > -1 { return true }; return false

Check failure on line 298 in scai-gen/cmd/check.go

View workflow job for this annotation

GitHub Actions / lint

S1008: should use 'return idx > -1' instead of 'if idx > -1 { return true }; return false' (gosimple)
}
return false
}

0 comments on commit 5828012

Please # to comment.