Skip to content

Commit 7aeb690

Browse files
[use-implicit-booleaness] Remove condition that is always false (outdated typing hint?)
1 parent 6e07a3b commit 7aeb690

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pylint/checkers/refactoring/implicit_booleaness_checker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ def _check_compare_to_str_or_zero(self, node: nodes.Compare) -> None:
233233
if self.linter.is_message_enabled(
234234
"use-implicit-booleaness-not-comparison-to-str"
235235
):
236-
if op_1 is None or op_3 is None:
237-
continue
238236
node_name = ""
239237
# x ?? ""
240238
if utils.is_empty_str_literal(op_1):

0 commit comments

Comments
 (0)