From 664b58df2877197668edbbacc4779af8db0eb770 Mon Sep 17 00:00:00 2001 From: Evan Tahler Date: Tue, 1 Dec 2020 08:15:29 -0800 Subject: [PATCH] Micro-optimization from https://github.com/actionhero/node-resque/pull/485#discussion_r533528203 --- src/core/pluginRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pluginRunner.ts b/src/core/pluginRunner.ts index 255380ba..aa0d13a1 100644 --- a/src/core/pluginRunner.ts +++ b/src/core/pluginRunner.ts @@ -7,8 +7,8 @@ export async function RunPlugins( args, pluginCounter? ) { - if (!pluginCounter) pluginCounter = 0; if (!job) return true; + if (!pluginCounter) pluginCounter = 0; if ( job.plugins === null || job.plugins === undefined ||