We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf850fb commit 90bbd9eCopy full SHA for 90bbd9e
src/ghastoolkit/octokit/codescanning.py
@@ -493,11 +493,11 @@ def getAnalyses(
493
docs="https://docs.github.com/en/enterprise-cloud@latest/rest/code-scanning#list-code-scanning-analyses-for-a-repository",
494
)
495
496
- if len(results) < 0:
+ if len(results) == 0:
497
# If the retry count is less than 1, we don't retry
498
- if self.retry_count < 1:
+ if self.retry_count > 1:
499
logger.debug(
500
- f"No analyses found, retrying {counter}/{self.retry_count})"
+ f"No analyses found, retrying ({counter}/{self.retry_count})"
501
502
time.sleep(self.retry_sleep)
503
else:
0 commit comments