Skip to content

Commit

Permalink
fix: Remove unneeded .get()
Browse files Browse the repository at this point in the history
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 <contact@ngjx.org>
  • Loading branch information
caffeine-addictt committed Dec 25, 2024
1 parent 8199b7d commit 4862a7d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ctfcli/core/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,6 @@ def lint(self, skip_hadolint=False, flag_format="flag{") -> bool:
)

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

Expand Down

0 comments on commit 4862a7d

Please sign in to comment.