Skip to content

Commit

Permalink
Fixed stupid profile saver bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed May 18, 2023
1 parent eddf240 commit 6645e21
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ class ProfileSaver(
val uuid = iterator.next()
iterator.remove()

val profile = handler.accessLoadedProfile(uuid)

if (profile == null) {
iterator.remove()
continue
}
val profile = handler.accessLoadedProfile(uuid) ?: continue

handler.saveKeysFor(uuid, profile.data.keys)
}
Expand Down

0 comments on commit 6645e21

Please sign in to comment.