Skip to content

Commit 5e298ee

Browse files
committed
Add clearer comments
1 parent f5aec79 commit 5e298ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/codesungrape/hmcts/BookAPI/service/BookService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public Book createBook(BookRequest request) {
4141

4242
Book savedBook = bookRepository.save(newBook);
4343

44-
// Defensive check (even though it "shouldn't" happen)
44+
// Defensive check (even though it "shouldn't" happen aka follows JPA contract)
4545
if (savedBook == null) {
4646
throw new IllegalStateException("Failed to save book - repository returned null");
4747
}

0 commit comments

Comments
 (0)