mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
cleanup ignored static analysis (#16767)
This commit is contained in:
@@ -1887,11 +1887,12 @@ func mergeXLV2Versions(quorum int, strict bool, requestedVersions int, versions
|
||||
continue
|
||||
}
|
||||
if i == 0 || ver.header.sortsBefore(latest.header) {
|
||||
if i == 0 || latestCount == 0 {
|
||||
switch {
|
||||
case i == 0 || latestCount == 0:
|
||||
latestCount = 1
|
||||
} else if !strict && ver.header.matchesNotStrict(latest.header) {
|
||||
case !strict && ver.header.matchesNotStrict(latest.header):
|
||||
latestCount++
|
||||
} else {
|
||||
default:
|
||||
latestCount = 1
|
||||
}
|
||||
latest = ver
|
||||
|
||||
Reference in New Issue
Block a user