From b0b554e6f0f609774d628544a88ab70e7d487679 Mon Sep 17 00:00:00 2001 From: Darwin D Wu Date: Thu, 21 Nov 2024 01:00:14 -0800 Subject: [PATCH] revert --- handler.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/handler.go b/handler.go index 8d16db93..53f64cb3 100644 --- a/handler.go +++ b/handler.go @@ -261,7 +261,11 @@ func (h HandlerOpts) GetWorkerConcurrency() int { } func (h HandlerOpts) isDev() bool { - return (h.Dev != nil && *h.Dev) || IsDev() + if h.Dev != nil { + return *h.Dev + } + + return IsDev() } // Handler represents a handler which serves the Inngest API via HTTP. This provides