Skip to content

Commit a5af442

Browse files
committed
Remove redundant assert for bookTitle in addBook
1 parent b089f14 commit a5af442

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/bookkeeper/InputHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ private void addBook(String[] commandArgs) throws IncorrectFormatException {
118118

119119
// Trim whitespaces from the book title
120120
String bookTitle = bookArgs[0].trim();
121-
assert bookTitle != null && !bookTitle.isEmpty() : "Book title cannot be null or empty";
122121

123122
// Check if book already exists in the inventory
124123
if (bookList.findBookByTitle(bookTitle) != null) {

0 commit comments

Comments
 (0)