mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 15:24:18 +00:00
Merge pull request #1722 from PyCQA/filename-cannot-be-none
remove impossible None check
This commit is contained in:
commit
ebbb57d63c
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ class FileProcessor:
|
||||||
|
|
||||||
def read_lines(self) -> list[str]:
|
def read_lines(self) -> list[str]:
|
||||||
"""Read the lines for this file checker."""
|
"""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"
|
self.filename = self.options.stdin_display_name or "stdin"
|
||||||
lines = self.read_lines_from_stdin()
|
lines = self.read_lines_from_stdin()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue