Skip to content

Commit 32cb16f

Browse files
pre-commit-ci[bot]fra87
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6d42585 commit 32cb16f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

barcode/writer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ def calculate_size(self, modules_per_line: int, number_of_lines: int) -> tuple:
154154
)
155155
number_of_text_lines = len(self.text.splitlines())
156156
if self.font_size and self.text:
157-
height += (
158-
pt2mm(self.font_size) * number_of_text_lines + self.text_distance
159-
)
157+
height += pt2mm(self.font_size) * number_of_text_lines + self.text_distance
160158
height += self.text_line_distance * (number_of_text_lines - 1)
161159
return width, height
162160

0 commit comments

Comments
 (0)