From fb4b1f458c4e072a2447c54f208dea7689ed28ae Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Sun, 24 Nov 2024 21:17:34 +0200 Subject: [PATCH] fix: simplify `if` conditions --- src/bin/vip-logs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/vip-logs.js b/src/bin/vip-logs.js index a59f48e48..28e7e09e4 100755 --- a/src/bin/vip-logs.js +++ b/src/bin/vip-logs.js @@ -148,7 +148,7 @@ function printLogs( logs, format ) { } ); let output = ''; - if ( format && 'table' === format ) { + if ( 'table' === format ) { const options = { wordWrap: true, wrapOnWordBoundary: true, @@ -179,7 +179,7 @@ function printLogs( logs, format ) { } output = table.toString(); - } else if ( format && 'text' === format ) { + } else if ( 'text' === format ) { const rows = []; for ( const { timestamp, message } of logs ) { rows.push( `${ timestamp } ${ message }` );