Skip to content

Commit

Permalink
Remove unnecessary if else
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Aug 2, 2024
1 parent a305ee1 commit 23acf5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions publication.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def process_publication(ctx, vault_package):
status = publication_state['status']

# Check if verbose mode is enabled
verbose = True if "verboseMode" in publication_config else False
verbose = "verboseMode" in publication_config
if verbose:
log.write(ctx, "Running process_publication in verbose mode.")

Expand Down Expand Up @@ -1025,7 +1025,7 @@ def process_depublication(ctx, vault_package):
status = publication_state['status']

# Check if verbose mode is enabled
verbose = True if "verboseMode" in publication_config else False
verbose = "verboseMode" in publication_config
if verbose:
log.write(ctx, "Running process_depublication in verbose mode.")

Expand Down Expand Up @@ -1172,7 +1172,7 @@ def process_republication(ctx, vault_package):
status = publication_state['status']

# Check if verbose mode is enabled
verbose = True if "verboseMode" in publication_config else False
verbose = "verboseMode" in publication_config
if verbose:
log.write(ctx, "Running process_republication in verbose mode.")

Expand Down Expand Up @@ -1365,7 +1365,7 @@ def update_publication(ctx, vault_package, update_datacite=False, update_landing
status = publication_state['status']

# Check if verbose mode is enabled
verbose = True if "verboseMode" in publication_config else False
verbose = "verboseMode" in publication_config
if verbose:
log.write(ctx, "Running update_publication in verbose mode.")

Expand Down

0 comments on commit 23acf5a

Please sign in to comment.