Skip to content

Commit

Permalink
Revert "logs: Make padding mechanism working only if padding is longe…
Browse files Browse the repository at this point in the history
…r than string"
  • Loading branch information
wallet77 authored Mar 19, 2018
1 parent 067c18e commit a9bfc88
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/API/Log.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,6 @@ function pad(pad, str, padLeft) {
if (padLeft) {
return (pad + str).slice(-pad.length);
} else {
if (pad.length > str.length) {
return (str + pad).substring(0, pad.length);
} else {
return str;
}
return (str + pad).substring(0, pad.length);
}
}

0 comments on commit a9bfc88

Please sign in to comment.