Skip to content

Commit f1cffda

Browse files
eds-collaboramgalka
authored andcommitted
Ignore a wider range of values for config_path
We were previously checking only for `None`, but it's probably beneficial to ignore anything falsey. Change as suggested in code review. Signed-off-by: Ed Smith <[email protected]>
1 parent e4e70f0 commit f1cffda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernelci/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def load(config_path):
168168
unified file
169169
170170
"""
171-
if config_path is None:
171+
if not config_path:
172172
return {}
173173
data = load_yaml(config_path)
174174
return from_data(data)

0 commit comments

Comments
 (0)