Skip to content

Commit

Permalink
Remove unused variable and unneeded seek()
Browse files Browse the repository at this point in the history
Fixes:
chirp/drivers/generic_csv.py:199:12: W0612: Unused variable 'header' (unused-variable)
  • Loading branch information
dforsi authored and kk7ds committed Jun 27, 2023
1 parent 1bbed4f commit 8017a25
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chirp/drivers/generic_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ def load(self, filename=None):
self._blank()

with open(self._filename, newline='', encoding='utf-8') as f:
header = f.readline().strip()
f.seek(0, 0)
return self._load(f)

def _load(self, f):
Expand Down

0 comments on commit 8017a25

Please sign in to comment.