Skip to content

Commit 28f3599

Browse files
author
Shane Wright
committed
minor formatting/whitespace fixup
1 parent 678fb1e commit 28f3599

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/client/parse_spdx.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def poll_for_upload(sbom_name):
211211
logging.error(f"No scan found for SBOM: {sbom_name}")
212212
else:
213213
logging.error(f"Unable to verify successful scan of SBOM: {sbom_name}")
214-
214+
# If we got this far, it's a fatal error.
215215
sys.exit(1)
216216

217217
# TODO do we care about project_groups?
@@ -241,7 +241,6 @@ def upload_sbom_file(filename, project, version):
241241
logging.error(f"Status code {response.status_code}")
242242
sys.exit(1)
243243

244-
245244
# Lookup the given pURL in the BD KB.
246245
#
247246
# Inputs:
@@ -261,7 +260,6 @@ def find_comp_in_kb(extref):
261260
# Fall through -- lookup failed
262261
return(None)
263262

264-
265263
# Locate component name + version in BOM
266264
# Inputs:
267265
# compname - Component name to locate
@@ -295,7 +293,6 @@ def find_comp_in_bom(compname, compver, projver):
295293
return False
296294
return False
297295

298-
299296
# Verifies if a custom component and version already exist in the system
300297
#
301298
# Inputs:
@@ -386,7 +383,6 @@ def create_cust_comp(name, version, license):
386383
for version in bd.get_items(response.links['versions']['url']):
387384
return(version['_meta']['href'])
388385

389-
390386
# Create a version for a custom component that already exists
391387
#
392388
# Inputs:
@@ -410,7 +406,6 @@ def create_cust_comp_ver(comp_url, version, license):
410406
logging.error(f"Version {version} already exists for component")
411407
sys.exit(1)
412408

413-
# necessary?
414409
if response.status_code != 201:
415410
logging.error(f"Failed to add Version {version} to component")
416411
sys.exit(1)

0 commit comments

Comments
 (0)