aboutsummaryrefslogtreecommitdiff
path: root/2021
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-12-12 07:01:36 +0100
committerThomas Voss <thomasvoss@live.com> 2021-12-12 07:01:36 +0100
commit8b2de23eaa431c7d640b73e34cbaa6da66c27da6 (patch)
tree143bd2aa193bf0dabe1d0d15e69fc49fc414dbcc /2021
parent1b70f3065663023b5a76c64b2b460a9231c64ecd (diff)
Remove 1 line of code
Diffstat (limited to '2021')
-rw-r--r--2021/12/puzzles.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/2021/12/puzzles.py b/2021/12/puzzles.py
index a395f5c..ede75db 100644
--- a/2021/12/puzzles.py
+++ b/2021/12/puzzles.py
@@ -16,9 +16,8 @@ def solve(paths: defaultdict[str, list[str]], path: str, flag: bool = False) ->
# END PART 1 START PART 2
elif dest != "start":
if dest.islower() and dest in tokens:
- if flag:
- continue
- acc += solve(paths, f"{path},{dest}", True)
+ if not flag:
+ acc += solve(paths, f"{path},{dest}", True)
else:
acc += solve(paths, f"{path},{dest}", flag)
# END PART 2