Skip to content

Commit

Permalink
feat: Fix getByUuid and exists methods in AbstractRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
amengus87 committed May 30, 2024
1 parent e443ba6 commit 9128dde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public boolean exists(String uuid) {
}

public boolean exists(UUID uuid) {
return getByUuid(uuid) != null;
return getByUuid(uuid).isPresent();
}

public Optional<T> getByUuid(String uuid) {
Expand Down

0 comments on commit 9128dde

Please sign in to comment.