Commit 410d6af Marcin Lewandowski
committed
1 parent f39973e commit 410d6af Copy full SHA for 410d6af
File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -210,13 +210,10 @@ pub fn print_decoded_token(
210
210
( None , _, Ok ( token) ) => {
211
211
let header_output = to_string_pretty ( & token. header ) . unwrap ( ) ;
212
212
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) ;
220
217
}
221
218
( _, _, Err ( _) ) => exit ( 1 ) ,
222
219
}
You can’t perform that action at this time.
0 commit comments