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 e6204b1 commit f47edb3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ private const val SUFFIX_SEPARATOR = "-"
/**
* Checks if the server version is greater than another provided version, returns true if it is.
*/
fun isServerVersionAtLeast(serverConfig: ServerConfig?, version: String?): Boolean {
fun isServerVersionAtLeast(serverConfig: ServerConfig?, version: String): Boolean {
val serverVersion = serverConfig
?.serverData
?.version

if (serverVersion.isNullOrEmpty() || version.isNullOrEmpty()) {
if (serverVersion.isNullOrEmpty() || version.isEmpty()) {
return false
}

Expand Down

0 comments on commit f47edb3

Please sign in to comment.