From eb079a558fa509a989e0ce7326bd108969b1bbc5 Mon Sep 17 00:00:00 2001 From: gaithern <36639398+gaithern@users.noreply.github.com> Date: Mon, 29 Jul 2024 12:45:09 -0500 Subject: [PATCH] Update worlds/kh1/__init__.py Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com> --- worlds/kh1/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/worlds/kh1/__init__.py b/worlds/kh1/__init__.py index ca948216d4c4..381c0c2d35c0 100644 --- a/worlds/kh1/__init__.py +++ b/worlds/kh1/__init__.py @@ -285,10 +285,7 @@ def get_numbers_of_reports_to_consider(self) -> List[int]: def determine_reports_in_pool(self) -> int: numbers_to_consider = self.get_numbers_of_reports_to_consider() - if len(numbers_to_consider) > 0: - return max(numbers_to_consider) - else: - return 0 + return max(numbers_to_consider, default=0) def determine_reports_required_to_open_end_of_the_world(self) -> int: if self.options.end_of_the_world_unlock.current_key == "reports":