Skip to content

Commit

Permalink
Remove superfluous None check
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderVertegaal committed Aug 28, 2024
1 parent 6db6ff3 commit f6f2331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/aethel_db/views/sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def get(self, request: HttpRequest) -> JsonResponse:

for sample in samples:
for phrase_index, phrase in enumerate(sample.lexical_phrases):
word_match = word_input and match_word_with_phrase_exact(
word_match = match_word_with_phrase_exact(
phrase, word_input
)
type_match = type_input and match_type_with_phrase(phrase, type_input)
type_match = match_type_with_phrase(phrase, type_input)

if not (word_match and type_match):
continue
Expand Down

0 comments on commit f6f2331

Please sign in to comment.