Skip to content

Commit 593d9bb

Browse files
committed
Removed returns on addBook and removeBook
1 parent 92ad5ef commit 593d9bb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Behavioral/Iterator/BookList.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ public function getBook($bookNumberToGet)
1919
public function addBook(Book $book)
2020
{
2121
$this->books[] = $book;
22-
23-
return $this->count();
2422
}
2523

2624
public function removeBook(Book $bookToRemove)
@@ -31,8 +29,6 @@ public function removeBook(Book $bookToRemove)
3129
unset($this->books[$key]);
3230
}
3331
}
34-
35-
return $this->count();
3632
}
3733

3834
public function count()

0 commit comments

Comments
 (0)