From dff3186aa7c0020d0fb3fad7950dbcf4bee6a36f Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sat, 15 Sep 2018 19:32:20 +0300 Subject: [PATCH] [Minor] Enforce return after callback --- .eslintrc.json | 1 - interface/js/app/history.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bf4c767c92..b04b72b4bf 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -53,7 +53,6 @@ // Temporarily disabled rules "array-callback-return": "off", "array-element-newline": "off", - "callback-return": "off", "consistent-return": "off", "consistent-this": "off", "func-style": "off", diff --git a/interface/js/app/history.js b/interface/js/app/history.js index fa80a10cdc..990f60a093 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -608,7 +608,7 @@ define(["jquery", "footable", "humanize"], var i = (typeof iteration === "undefined") ? 10 : iteration; var num_rows = $("#historyTable > tbody > tr").length; if (num_rows === rows_per_page) { - callback(); + return callback(); } else if (--i) { setTimeout(function () { waitForRowsDisplayed(callback, i); -- 2.47.3