Skip to content

Commit 8fa4e6c

Browse files
pre-commit-ci[bot]WhyNotHugo
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4a276fc commit 8fa4e6c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

barcode/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ def generate(
115115
barcode = get(name, code, writer)
116116

117117
if isinstance(output, str):
118-
fullname = barcode.save(output, writer_options, text)
119-
return fullname
118+
return barcode.save(output, writer_options, text)
120119
if output:
121120
barcode.write(output, writer_options, text)
122121
return None

barcode/codex.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ def _build(self):
237237
encoded.extend(self._new_charset("B"))
238238
encoded.append(self._convert(self._buffer[0]))
239239
self._buffer = ""
240-
encoded = self._try_to_optimize(encoded)
241-
return encoded
240+
return self._try_to_optimize(encoded)
242241

243242
def build(self):
244243
encoded = self._build()

0 commit comments

Comments
 (0)