Skip to content

Commit

Permalink
Merge pull request #3547 from Unitech/revert-3532-logs-smart-app-name…
Browse files Browse the repository at this point in the history
…-cutting

Revert "logs: Make padding mechanism working only if padding is longer than string"
  • Loading branch information
wallet77 authored Mar 19, 2018
2 parents 067c18e + a9bfc88 commit 438e303
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 438e303

Please sign in to comment.