Skip to content

Commit

Permalink
Use "any" instead of "some"
Browse files Browse the repository at this point in the history
  • Loading branch information
tyilo authored Oct 22, 2018
1 parent 6ccfd54 commit 6e3f1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def guess_language(ext, files):
return "C++"
ext = ext.lower()
if ext == ".h":
if some(f.endswith(".c") for f in files):
if any(f.endswith(".c") for f in files):
return "C"
else:
return "C++"
Expand Down

0 comments on commit 6e3f1d3

Please sign in to comment.