Skip to content

Commit

Permalink
style: beautify f1a54a6
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 10, 2023
1 parent f1a54a6 commit 0280e10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion semantic_release/cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,11 @@ def from_raw_config(
)

token = cls.resolve_from_env(raw.remote.token)
if isinstance(raw.remote.token, EnvConfigVar) and not raw.remote.ignore_token_for_push and not token:
if (
isinstance(raw.remote.token, EnvConfigVar)
and not raw.remote.ignore_token_for_push
and not token
):
log.warning(
"the token for the remote VCS is configured as stored in the %s environment variable, but it is empty",
raw.remote.token.env,
Expand Down

0 comments on commit 0280e10

Please sign in to comment.