Skip to content

Commit

Permalink
Reduce complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
BenYip123 committed Jun 12, 2024
1 parent a3f37e9 commit 3765d9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ClusterBuilder(clusterInfo: ClusterInfo, val REST_API_VERSION_PATH: String
}

private fun checkIfNotPreviousVersion(): Boolean {
return REST_API_VERSION_PATH != "v5_1" && REST_API_VERSION_PATH != "v5_2"
return REST_API_VERSION_PATH != RestApiVersion.C5_1.versionPath && REST_API_VERSION_PATH != RestApiVersion.C5_2.versionPath
}

internal val vNodeCreatorClient: HttpsClient by lazy {
Expand Down

0 comments on commit 3765d9f

Please sign in to comment.