Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and WhyNotHugo committed Jul 1, 2023
1 parent 4a276fc commit 8fa4e6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions barcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def generate(
barcode = get(name, code, writer)

if isinstance(output, str):
fullname = barcode.save(output, writer_options, text)
return fullname
return barcode.save(output, writer_options, text)
if output:
barcode.write(output, writer_options, text)
return None
Expand Down
3 changes: 1 addition & 2 deletions barcode/codex.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ def _build(self):
encoded.extend(self._new_charset("B"))
encoded.append(self._convert(self._buffer[0]))
self._buffer = ""
encoded = self._try_to_optimize(encoded)
return encoded
return self._try_to_optimize(encoded)

def build(self):
encoded = self._build()
Expand Down

0 comments on commit 8fa4e6c

Please sign in to comment.