Commit 38b6a424 authored by Manuel Christlieb's avatar Manuel Christlieb

fix: [len-as-condition] Do not use `len(SEQUENCE)` to determine if a sequence is empty

parent 4e05a2c3
......@@ -56,7 +56,7 @@ def main():
full_path = os.path.realpath(os.path.join(os.getcwd(), path))
os.makedirs(full_path, exist_ok=True)
if len(os.listdir(full_path)) > 0:
if os.listdir(full_path):
raise B5ExecutionError('Cannot init an existing directory if not empty')
_run_cmd(['git', 'clone', skeleton_url, full_path], 'Could not clone skeleton repository, see above')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment