Skip to content

Commit 3d6a5ec

Browse files
committed
Updated PolicyCheck return codes and simplified duplicate code
1 parent cffcbf1 commit 3d6a5ec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/scanoss/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,8 @@ def inspect_dep_track_project_violations(parser, args):
18461846
"""
18471847
if not args.project_id and not args.project_name and not args.project_version:
18481848
print_stderr(
1849-
'Please specify either a project ID (--project-id) or a project name (--project-name) and version (--project-version)'
1849+
'Please specify either a project ID (--project-id) or a project name (--project-name) and '
1850+
'version (--project-version)'
18501851
)
18511852
parser.parse_args([args.subparser, '-h'])
18521853
sys.exit(1)

src/scanoss/inspection/dependency_track/project_violation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
It retrieves, processes, and formats policy violations from a Dependency Track instance
3030
for a specific project.
3131
"""
32-
3332
import json
3433
import time
3534
from datetime import datetime
@@ -294,7 +293,6 @@ def _wait_processing_by_project_status(self):
294293
time.sleep(PROCESSING_RETRY_DELAY)
295294
self.print_debug('Checking if complete...')
296295
# End while loop
297-
return
298296

299297
def _wait_project_processing(self):
300298
"""

0 commit comments

Comments
 (0)