From a9bfc882b65dcb50a22df10bbce5be6067cc38cb Mon Sep 17 00:00:00 2001 From: Vincent Vallet Date: Mon, 19 Mar 2018 09:48:33 +0100 Subject: [PATCH] Revert "logs: Make padding mechanism working only if padding is longer than string" --- lib/API/Log.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/API/Log.js b/lib/API/Log.js index 812002f0f..37ad02974 100644 --- a/lib/API/Log.js +++ b/lib/API/Log.js @@ -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); } }