From d3db240e12af359655ce385610d78039b9e756de Mon Sep 17 00:00:00 2001 From: Ahmed Sayeed Wasif Date: Fri, 12 Jan 2024 12:24:48 +0800 Subject: [PATCH] Wrap conditional statement around curly braces --- src/lib/cli/command.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/cli/command.js b/src/lib/cli/command.js index 7fe1d5118..98986157e 100644 --- a/src/lib/cli/command.js +++ b/src/lib/cli/command.js @@ -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; }