Skip to content

Commit

Permalink
Fix lint errors, probably from new staticcheck version
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Twigg <[email protected]>
  • Loading branch information
neilalexander committed Sep 10, 2024
1 parent 2e1251e commit 1378f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (l *Limits) Validate(vr *ValidationResults) {
}
}

if l.Times != nil && len(l.Times) > 0 {
if len(l.Times) > 0 {
for _, t := range l.Times {
t.Validate(vr)
}
Expand Down
2 changes: 1 addition & 1 deletion v2/v1compat/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (l *Limits) Validate(vr *ValidationResults) {
}
}

if l.Times != nil && len(l.Times) > 0 {
if len(l.Times) > 0 {
for _, t := range l.Times {
t.Validate(vr)
}
Expand Down

0 comments on commit 1378f59

Please sign in to comment.