Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Bug Fixes #7

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor conditional print statement in main.rs
  • Loading branch information
djschleen authored Oct 9, 2024
commit b0e07a1a58a260b41a2da4c2a9dc072f2a52ead5
7 changes: 1 addition & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ fn main() {

if args.sbom.is_file() {
print_ascii_header();
}

if args.sbom.is_file() {
conditional_println!(args.sbom.is_file(), "* Reading SBOM from file...");
} else {
conditional_println!(args.sbom.is_file(), "* Reading SBOM from stdin...");
conditional_println!(true, "* Reading SBOM from file...");
}

let file_contents = match args.sbom.clone().into_reader() {
Expand Down