Skip to content

Commit

Permalink
Wrap conditional statement around curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
aswasif007 committed Jan 12, 2024
1 parent d481c9b commit d3db240
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/cli/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@ args.argv = async function ( argv, cb ) {
res = await cb( this.sub, options );
if ( _opts.format && res ) {
if ( res.header ) {
if ( options.format !== 'json' ) console.log( formatData( res.header, 'keyValue' ) );
if ( options.format !== 'json' ) {
console.log( formatData( res.header, 'keyValue' ) );
}
res = res.data;
}

Expand Down

0 comments on commit d3db240

Please sign in to comment.