Skip to content

Commit b831a5e

Browse files
committed
plume/release: simplify compare static release info
Update how we evaluate the conditional to satisfy linter. 'S1008: should use 'return a.Version == b.Version' instead of 'if a.Version != b.Version { return false }; return true' (gosimple)'
1 parent 659bfcc commit b831a5e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mantle/cmd/plume/release.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,7 @@ func modifyReleaseMetadataIndex(api *aws.API, rel release.Release) {
369369
}
370370

371371
func compareStaticReleaseInfo(a, b release.IndexRelease) bool {
372-
if a.Version != b.Version || a.MetadataURL != b.MetadataURL {
373-
return false
374-
}
375-
return true
372+
return a.Version == b.Version && a.MetadataURL == b.MetadataURL
376373
}
377374

378375
// returns -1 if a is a subset of b, 0 if equal, 1 if a is not a subset of b

0 commit comments

Comments
 (0)