Skip to content

Commit

Permalink
one last code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Nov 17, 2023
1 parent 52c040f commit e759fab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
Expand Down Expand Up @@ -489,7 +490,7 @@ public List<UUID> getOrgAdminUserIds(UUID orgId) {
}
return foundUser.map(user -> user.getInternalId()).orElse(null);
})
.filter(userId -> userId != null)
.filter(Objects::nonNull)
.collect(Collectors.toList());
}
}

0 comments on commit e759fab

Please sign in to comment.