From e434cd0bf7d5a57b47003a09224056ff7d2feb3d Mon Sep 17 00:00:00 2001 From: LianaHus Date: Tue, 12 Nov 2019 12:34:58 +0100 Subject: [PATCH] last fix --- src/lib/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/helper.js b/src/lib/helper.js index e2d12e83ed..8628418f5e 100644 --- a/src/lib/helper.js +++ b/src/lib/helper.js @@ -12,7 +12,7 @@ module.exports = { return data.slice(0, 5) + '...' + data.slice(len - 5, len) }, createNonClashingNameWithPrefix (name, fileProvider, prefix, cb) { - if (name === '') name = 'Undefined' + if (!name) name = 'Undefined' var counter = '' var ext = 'sol' var reg = /(.*)\.([^.]+)/g