Skip to content

Commit aeb623e

Browse files
authored
Fix removed_packages length check (#10)
1 parent f68d3f0 commit aeb623e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socketsecurity/socketcli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def main_code():
274274
if len(diff.new_alerts) == 0 or disable_security_issue:
275275
new_security_comment = False
276276
log.debug("No new alerts or security issue comment disabled")
277-
if (len(diff.new_packages) == 0 and diff.removed_packages == 0) or disable_overview:
277+
if (len(diff.new_packages) == 0 and len(diff.removed_packages) == 0) or disable_overview:
278278
new_overview_comment = False
279279
log.debug("No new/removed packages or Dependency Overview comment disabled")
280280
log.debug(f"Adding comments for {scm_type}")

0 commit comments

Comments
 (0)