Skip to content

Commit

Permalink
style: Pass lambda as reference
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Mar 6, 2025
1 parent 97e23d6 commit ecad39b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,7 @@ class Thread : RealmObject {
updateSnoozeStatesBasedOn(message)
}

duplicates.forEach { duplicate ->
updateSnoozeStatesBasedOn(duplicate)
}
duplicates.forEach(::updateSnoozeStatesBasedOn)

date = messages.last { it.folderId == folderId }.date
subject = messages.first().subject
Expand Down

0 comments on commit ecad39b

Please sign in to comment.