Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
fix: empty log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 8, 2018
1 parent 58c6322 commit b5f5506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/colorize.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ module.exports = function colorize (line) {
if (!parsed) return line
let header = parsed[1]
let identifier = parsed[2]
let body = parsed[4].trim()
let body = (parsed[4] || '').trim()
switch (identifier) {
case 'api':
body = colorizeAPI(body)
Expand Down

0 comments on commit b5f5506

Please sign in to comment.