Skip to content

Commit

Permalink
fix: simplify if conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks authored Nov 24, 2024
1 parent b28275e commit fb4b1f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/vip-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function printLogs( logs, format ) {
} );

let output = '';
if ( format && 'table' === format ) {
if ( 'table' === format ) {
const options = {
wordWrap: true,
wrapOnWordBoundary: true,
Expand Down Expand Up @@ -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 }` );
Expand Down

0 comments on commit fb4b1f4

Please sign in to comment.