Skip to content

Commit

Permalink
removed get empty instance
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonzorn committed Jul 23, 2024
1 parent f5073d1 commit 693db91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions nlightreader/models/image_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,3 @@ def url(self, url: str | None):
if url is not None and not validators.url(url):
raise ValueError(f"Url {url} is not valid")
self.__url = url

@staticmethod
def get_empty_instance():
return Image("", 1, None)
2 changes: 1 addition & 1 deletion nlightreader/windows/Reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def get_images(self):
chapter = self._current_chapter
self.__images = self.__catalog.get_images(self.__manga, chapter)
if not self.__images:
self.__images = [Image.get_empty_instance()]
self.__images = [Image("", 1, None)]
self.__max_page = self.get_chapter_pages()

def get_chapter_pages(self) -> int:
Expand Down

0 comments on commit 693db91

Please sign in to comment.