diff options
author | James Ennis <james.ennis@codethink.com> | 2018-02-14 15:58:42 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2018-03-14 14:10:26 +0000 |
commit | 4741d1379a6e17048423f0e08588b607668ab98a (patch) | |
tree | 91d1815aa482df35786cebb94d4a650a073194d4 /buildstream/_artifactcache/artifactcache.py | |
parent | 05fa346f9911638b272eca0b62a110b590803ab2 (diff) | |
download | buildstream-4741d1379a6e17048423f0e08588b607668ab98a.tar.gz |
pylint - dealt with len-as-condition warning
Diffstat (limited to 'buildstream/_artifactcache/artifactcache.py')
-rw-r--r-- | buildstream/_artifactcache/artifactcache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py index 4d1e18aa5..5f3f337d1 100644 --- a/buildstream/_artifactcache/artifactcache.py +++ b/buildstream/_artifactcache/artifactcache.py @@ -40,7 +40,7 @@ class ArtifactCacheSpec(namedtuple('ArtifactCacheSpec', 'url push')): _yaml.node_validate(spec_node, ['url', 'push']) url = _yaml.node_get(spec_node, str, 'url') push = _yaml.node_get(spec_node, bool, 'push', default_value=False) - if len(url) == 0: + if not url: provenance = _yaml.node_get_provenance(spec_node) raise LoadError(LoadErrorReason.INVALID_DATA, "{}: empty artifact cache URL".format(provenance)) |