diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/ifNotEmpty.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/handlebars/ifNotEmpty.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/ifNotEmpty.js b/server/sonar-web/src/main/js/helpers/handlebars/ifNotEmpty.js index 56324f88f76..a6c314a607e 100644 --- a/server/sonar-web/src/main/js/helpers/handlebars/ifNotEmpty.js +++ b/server/sonar-web/src/main/js/helpers/handlebars/ifNotEmpty.js @@ -18,10 +18,10 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ module.exports = function () { - var args = Array.prototype.slice.call(arguments, 0, -1), - options = arguments[arguments.length - 1], - notEmpty = args.reduce(function (prev, current) { - return prev || (current && current.length > 0); - }, false); + const args = Array.prototype.slice.call(arguments, 0, -1); + const options = arguments[arguments.length - 1]; + const notEmpty = args.reduce(function (prev, current) { + return prev || (current && current.length > 0); + }, false); return notEmpty ? options.fn(this) : options.inverse(this); }; |