Skip to content

Commit

Permalink
convert to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode committed Jan 23, 2020
1 parent 2742a58 commit 84999f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dvc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ class NoRemoteError(ConfigError):
def __init__(self, command, *, config=None):
has_any_remote = False
if config:
has_any_remote = config.list_options(
Config.SECTION_REMOTE_REGEX, Config.SECTION_REMOTE_URL
has_any_remote = bool(
config.list_options(
Config.SECTION_REMOTE_REGEX, Config.SECTION_REMOTE_URL
)
)

if has_any_remote:
Expand Down

0 comments on commit 84999f5

Please sign in to comment.