From 46c3f19d4afe489e0065d94740fc12a84efdb9cd Mon Sep 17 00:00:00 2001 From: Louis Parizeau Date: Wed, 27 Mar 2024 16:05:40 -0400 Subject: [PATCH] Removed repeat code and replaced with function --- src/classes/TriggerHandler.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/TriggerHandler.cls b/src/classes/TriggerHandler.cls index 57c4774..4b2da24 100644 --- a/src/classes/TriggerHandler.cls +++ b/src/classes/TriggerHandler.cls @@ -156,7 +156,7 @@ public virtual class TriggerHandler { if(!this.isTriggerExecuting || this.context == null) { throw new TriggerHandlerException('Trigger handler called outside of Trigger execution'); } - return !TriggerHandler.bypassedHandlers.contains(getHandlerName()); + return !isBypassed(getHandlerName()); } @TestVisible