Skip to content

Commit

Permalink
Make less changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Lewandowski committed Jan 7, 2023
1 parent 847dda3 commit dac502f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/translators/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,10 @@ pub fn print_decoded_token(
println!("{}", to_string_pretty(&TokenOutput::new(token)).unwrap());
}
(None, _, Ok(token)) => {
let header_output = to_string_pretty(&token.header).unwrap();
let claims_output = to_string_pretty(&token.claims).unwrap();
bunt::println!("\n{$bold}Token header\n------------{/$}");
println!("{}\n", header_output);
println!("{}\n", to_string_pretty(&token.header).unwrap());
bunt::println!("{$bold}Token claims\n------------{/$}");
println!("{}", claims_output);
println!("{}", to_string_pretty(&token.claims).unwrap());
}
(_, _, Err(_)) => exit(1),
}
Expand Down

0 comments on commit dac502f

Please sign in to comment.