Skip to content

Commit 3981df2

Browse files
refactor: challenge_files -> files
Signed-off-by: AlexNg <[email protected]>
1 parent 66eb8e1 commit 3981df2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ctfcli/core/challenge.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,8 @@ def lint(self, skip_hadolint=False, flag_format="flag{") -> bool:
761761
click.secho("Skipping Hadolint", fg="yellow")
762762

763763
# Check that all files exist
764-
challenge_files = challenge.get("files") or []
765-
for challenge_file in challenge_files:
764+
files = self.get("files") or []
765+
for challenge_file in files:
766766
challenge_file_path = self.challenge_directory / challenge_file
767767

768768
if challenge_file_path.is_file() is False:
@@ -771,7 +771,7 @@ def lint(self, skip_hadolint=False, flag_format="flag{") -> bool:
771771
)
772772

773773
# Check that files don't have a flag in them
774-
for challenge_file in challenge_files:
774+
for challenge_file in files:
775775
challenge_file_path = self.challenge_directory / challenge_file
776776

777777
if not challenge_file_path.exists():

0 commit comments

Comments
 (0)