Skip to content

Commit da633cf

Browse files
author
bruvio
committed
refactor of pipeline
1 parent eee356c commit da633cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fairdatapipeline/pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def initialise(token: str, config: str, script: str) -> dict:
100100
api_version=api_version,
101101
)
102102

103-
if len(results) == 0:
103+
if not results:
104104
raise IndexError(f"list {results} empty")
105105
else:
106106
user = results[0]
@@ -120,7 +120,7 @@ def initialise(token: str, config: str, script: str) -> dict:
120120
query={"user": user_id},
121121
api_version=api_version,
122122
)
123-
if len(results) == 0:
123+
if not results:
124124
raise IndexError(f"list {results} empty")
125125
else:
126126
author = results[0]

0 commit comments

Comments
 (0)