]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Enforce return after callback
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 15 Sep 2018 16:32:20 +0000 (19:32 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 15 Sep 2018 16:32:20 +0000 (19:32 +0300)
.eslintrc.json
interface/js/app/history.js

index bf4c767c926f911ffd4235a80e13ddcf3c72f296..b04b72b4bf19b1bd43ae186b7443e20df6f4c240 100644 (file)
@@ -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",
index fa80a10cdc4f7057c2fb797cc7cb01580d2e07dc..990f60a093031119933524edd95fe7e1a5cccbe5 100644 (file)
@@ -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);