From 8b1e7c696fa17dd23f025c1657fb97784ca859b4 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 26 Oct 2022 21:27:18 -0700 Subject: [PATCH] remove impossible None check --- src/flake8/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flake8/processor.py b/src/flake8/processor.py index 644192d..77f3d5a 100644 --- a/src/flake8/processor.py +++ b/src/flake8/processor.py @@ -326,7 +326,7 @@ class FileProcessor: def read_lines(self) -> list[str]: """Read the lines for this file checker.""" - if self.filename is None or self.filename == "-": + if self.filename == "-": self.filename = self.options.stdin_display_name or "stdin" lines = self.read_lines_from_stdin() else: