Skip to content

Commit

Permalink
fix: fix crash due to empty hash list
Browse files Browse the repository at this point in the history
  • Loading branch information
duruer committed Jun 1, 2024
1 parent 30178e2 commit 654cc8a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ class AddonHashDaoImpl : AddonHashDao() {
): Map<String, AddonHash> {
var listText = ""

if (hashList.isEmpty()) {
return mapOf()
}

hashList.forEach { hash ->
if (listText == "")
listText = "'$hash'"
Expand Down

0 comments on commit 654cc8a

Please sign in to comment.