Skip to content

Commit b3efd5b

Browse files
prestistdustymabe
authored andcommitted
plume/release: simplify compare static release info
fixes: S1008: should use 'return a.Version == b.Version' instead of 'if a.Version != b.Version { return false }; return true' (gosimple)
1 parent fc9386a commit b3efd5b

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
@@ -371,10 +371,7 @@ func modifyReleaseMetadataIndex(api *aws.API, rel release.Release) {
371371
}
372372

373373
func compareStaticReleaseInfo(a, b release.IndexRelease) bool {
374-
if a.Version != b.Version {
375-
return false
376-
}
377-
return true
374+
return a.Version == b.Version
378375
}
379376

380377
// 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)