Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sal0max committed Feb 3, 2024
1 parent c3ea6a9 commit 7703089
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ enum class ApiProvider(
BANK_OF_CANADA(6, BankOfCanada());

companion object {
fun fromId(value: Int): ApiProvider = values().firstOrNull { it.id == value }
fun fromId(value: Int): ApiProvider = entries.firstOrNull { it.id == value }
// this is our fallback, e.g. if an API is removed from the app
?: BANK_ROSSII
}
Expand Down

0 comments on commit 7703089

Please sign in to comment.