From f6f2331fbeba2cc54a6476bc3acbd50932edcfd1 Mon Sep 17 00:00:00 2001 From: Xander Vertegaal Date: Wed, 28 Aug 2024 13:21:18 +0200 Subject: [PATCH] Remove superfluous None check --- backend/aethel_db/views/sample_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/aethel_db/views/sample_data.py b/backend/aethel_db/views/sample_data.py index 0fea6a9..b72ba9b 100644 --- a/backend/aethel_db/views/sample_data.py +++ b/backend/aethel_db/views/sample_data.py @@ -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