Skip to content

Commit b94d2b2

Browse files
committed
Remove unnecessary comparison. Remove newline character
1 parent 376ec12 commit b94d2b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ci/ci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def make_sbom(self, tag: str) -> "str|CITestResult":
568568
"""
569569
start_time = time.time()
570570
sbom: str | CITestResult = self.get_sbom_buildx_blob(tag)
571-
if isinstance(sbom, str) and sbom != CITestResult.ERROR:
571+
if isinstance(sbom, str):
572572
packages: list[dict[str, str]] = self.parse_buildx_sbom(sbom)
573573
formatted_table: str | CITestResult = self.format_package_table(packages=packages)
574574
if packages and formatted_table != CITestResult.ERROR:
@@ -877,7 +877,7 @@ def badge_render(self) -> None:
877877
"PASS": "green", "FAIL": "red"})
878878
badge.write_badge(f"{self.outdir}/badge.svg", overwrite=True)
879879
with open(f"{self.outdir}/ci-status.yml", "w", encoding="utf-8") as file:
880-
file.write(f"CI: '{self.report_status.value}'\n")
880+
file.write(f"CI: '{self.report_status.value}'")
881881
except (ValueError,RuntimeError,FileNotFoundError,OSError):
882882
self.logger.exception("Failed to render badge file!")
883883

0 commit comments

Comments
 (0)