Skip to content

Commit 15a788b

Browse files
abnSecrus
andauthored
Update src/poetry/console/commands/build.py
Co-authored-by: Bartosz Sokorski <b.sokorski@gmail.com>
1 parent 4534c47 commit 15a788b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/poetry/console/commands/build.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def _build(
5151
else:
5252
raise ValueError(f"Invalid format: {fmt}")
5353

54-
local_version_label = self.option("local-version")
55-
56-
if local_version_label:
54+
if local_version_label := self.option("local-version"):
5755
self.poetry.package.version = self.poetry.package.version.replace(
5856
local=local_version_label
5957
)

0 commit comments

Comments
 (0)