Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
enricocolasante committed Dec 11, 2024
1 parent 14ddac9 commit 155f67d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ boolean exists(@Nonnull UID note) {
"select count(1) from note where uid = :uid",
Map.of("uid", note.getValue()),
Integer.class);
return count == null || count > 0;
return count != null && count > 0;
}

private long saveNote(@Nonnull Note note, @Nonnull UserDetails user) {
Expand Down

0 comments on commit 155f67d

Please sign in to comment.