app/assets/javascripts/components/worker-checker.js
Function check
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var check = function () {
const query = sinceId != null ? "?since_id=" + sinceId : "";
return $.getJSON("/worker_status" + query, function (json) {
for (var method of ["pending", "awaiting_retry", "recent_failures"]) {
var count = json[method];