diff --git a/poetry_version_plugin/plugin.py b/poetry_version_plugin/plugin.py index 1308fa8..a01074b 100644 --- a/poetry_version_plugin/plugin.py +++ b/poetry_version_plugin/plugin.py @@ -26,8 +26,7 @@ def activate(self, poetry: Poetry, io: IO) -> None: io.write_error_line(message) raise RuntimeError(message) if version_source == "init": - packages = poetry.local_config.get("packages") - if packages: + if packages := poetry.local_config.get("packages"): if len(packages) == 1: package_name = packages[0]["include"] else: