mypy: Enable redundant-expr errors.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-05-31 15:09:19 -07:00
committed by Tim Abbott
parent 944c036df1
commit c944adfcc6
6 changed files with 10 additions and 6 deletions

View File

@@ -218,7 +218,7 @@ def check_capitalization(strings: List[str]) -> Tuple[List[str], List[str], List
capitalized = is_capitalized(safe_text)
if not capitalized:
errors.append(text)
elif capitalized and has_ignored_phrase:
elif has_ignored_phrase:
ignored.append(text)
banned_word_errors.extend(check_banned_words(text))