Skip to content

Commit 410d6af

Browse files
author
Marcin Lewandowski
committed
Address unreachable code
1 parent f39973e commit 410d6af

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/translators/decode.rs

+4-7
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,10 @@ pub fn print_decoded_token(
210210
(None, _, Ok(token)) => {
211211
let header_output = to_string_pretty(&token.header).unwrap();
212212
let claims_output = to_string_pretty(&token.claims).unwrap();
213-
if output_path.is_some() {
214-
} else {
215-
bunt::println!("\n{$bold}Token header\n------------{/$}");
216-
println!("{}\n", header_output);
217-
bunt::println!("{$bold}Token claims\n------------{/$}");
218-
println!("{}", claims_output);
219-
}
213+
bunt::println!("\n{$bold}Token header\n------------{/$}");
214+
println!("{}\n", header_output);
215+
bunt::println!("{$bold}Token claims\n------------{/$}");
216+
println!("{}", claims_output);
220217
}
221218
(_, _, Err(_)) => exit(1),
222219
}

0 commit comments

Comments
 (0)