Skip to content

Commit

Permalink
refactor: Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Mar 7, 2025
1 parent fc73910 commit 280ebc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ data class ImpactedFolders(
*/
fun getFolderIds(realm: TypedRealm): Set<String> {
folderRoles.forEach { folderRole ->
FolderController.getFolder(folderRole, realm)?.let { folderIds.add(it.id) }
FolderController.getFolder(folderRole, realm)?.id?.let(folderIds::add)
}

return folderIds
Expand Down

0 comments on commit 280ebc3

Please sign in to comment.