Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbw2 committed Oct 3, 2024
1 parent ecf6407 commit e6204b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fun isServerVersionAtLeast(serverConfig: ServerConfig?, version: String?): Boole
return false

Check warning on line 26 in app/src/main/java/com/x8bit/bitwarden/data/platform/util/ServerVersionUtils.kt

View check run for this annotation

Codecov / codecov/patch

app/src/main/java/com/x8bit/bitwarden/data/platform/util/ServerVersionUtils.kt#L26

Added line #L26 was not covered by tests
}

// Must iterate through all indices to establish if versions are equal
for (i in serverVersionParts.indices) {
val serverPart = serverVersionParts.getOrNull(i)?.toIntOrNull() ?: 0
val otherPart = otherVersionParts.getOrNull(i)?.toIntOrNull() ?: 0
Expand All @@ -37,7 +38,6 @@ fun isServerVersionAtLeast(serverConfig: ServerConfig?, version: String?): Boole
}
}


// Versions are equal
return true
}
Expand Down

0 comments on commit e6204b1

Please sign in to comment.