Skip to content

Commit 66eb8e1

Browse files
fix: Remove unneeded .get()
This removes the repeated .get(). We can use the challenge_files from the previous get() on line 764 as it remains unchanged. Signed-off-by: AlexNg <[email protected]>
1 parent 0ad4592 commit 66eb8e1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ctfcli/core/challenge.py

-1
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,6 @@ def lint(self, skip_hadolint=False, flag_format="flag{") -> bool:
771771
)
772772

773773
# Check that files don't have a flag in them
774-
challenge_files = challenge.get("files", [])
775774
for challenge_file in challenge_files:
776775
challenge_file_path = self.challenge_directory / challenge_file
777776

0 commit comments

Comments
 (0)