Skip to content

Commit 94fccfc

Browse files
committed
undo explicit if
1 parent 6523638 commit 94fccfc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

intbot/core/analysis/submissions.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ def matches_question(answer: dict, question: str) -> bool:
7474
Answers come in a nested structure that includes localised question
7575
text. This function is a small wrapper to encapsulate that behaviour.
7676
"""
77-
# Explicit if to make it clear it's a comparison
78-
if question == answer.get("question", {}).get("question", {}).get("en"):
79-
return True
80-
return False
77+
return question == answer.get("question", {}).get("question", {}).get("en")
8178

8279

8380
def get_latest_submissions_data() -> PretalxData:

0 commit comments

Comments
 (0)