From f1e6874eeb2f2ec1592f1613512d693f12fdb87d Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 23 Jun 2020 13:34:49 +0200 Subject: [PATCH] lint compliance --- www/common/userObject.js | 6 +++--- www/pad/inner.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/common/userObject.js b/www/common/userObject.js index e6309a88c..23978cb65 100644 --- a/www/common/userObject.js +++ b/www/common/userObject.js @@ -666,9 +666,9 @@ define([ var data = allFilesList[id] || allSFList[id]; if (!data) { return; } if (Array.isArray(data.tags) && containsSearchedTag(data.tags)) { - res.push(id); - } else - var title = data.title || data.lastTitle + return void res.push(id); + } + var title = data.title || data.lastTitle; if ((title && title.toLowerCase().indexOf(lValue) !== -1) || (data.filename && data.filename.toLowerCase().indexOf(lValue) !== -1)) { res.push(id); diff --git a/www/pad/inner.js b/www/pad/inner.js index 84fd311f8..f189d7447 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -456,7 +456,7 @@ define([ }); }; - var mkPrintButton = function (framework, editor, ckeditor) { + var mkPrintButton = function (framework, editor) { var $printButton = framework._.sfCommon.createButton('print', true); $printButton.click(function () { editor.execCommand('print');