Skip to content

Commit

Permalink
fix: ApiVersion.kt iteration function.
Browse files Browse the repository at this point in the history
  • Loading branch information
echokrist committed Jan 11, 2025
1 parent 264d7d0 commit d4127b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/api/ApiVersion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public enum class ApiVersion(public val isLatest: Boolean = false) {
latest;

public companion object {
public val latestVersion: ApiVersion = values().first { it.isLatest }
public val latestVersion: ApiVersion = entries.first { it.isLatest }
}
}

0 comments on commit d4127b0

Please sign in to comment.