Skip to content

Commit

Permalink
Refactor conditional print statement in main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Oct 9, 2024
1 parent f96b1fd commit b0e07a1
Showing 1 changed file with 1 addition and 6 deletions.
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

0 comments on commit b0e07a1

Please sign in to comment.