From bc6e80015844dfd4be44a877109e68798c26e79a Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Wed, 26 Jul 2023 13:04:55 +0200 Subject: code style and type annotation fixes --- bsie/utils/filewalker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bsie/utils') diff --git a/bsie/utils/filewalker.py b/bsie/utils/filewalker.py index 3c36926..df72c38 100644 --- a/bsie/utils/filewalker.py +++ b/bsie/utils/filewalker.py @@ -21,11 +21,11 @@ def list_files( for path in roots: if not os.path.exists(path): continue - elif os.path.isdir(path) and recursive: + if os.path.isdir(path) and recursive: for dirpath, _, filenames in os.walk(path, topdown=True, followlinks=follow_symlinks): for filename in filenames: yield os.path.join(dirpath, filename) - elif os.path.isfile(path): + if os.path.isfile(path): yield path ## EOF ## -- cgit v1.2.3