mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
remove impossible None check
This commit is contained in:
parent
7dfe99616f
commit
8b1e7c696f
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue