From 98eac47127ddc95c89c31721fd7af715bdfec7ba Mon Sep 17 00:00:00 2001 From: bryanqiu Date: Sun, 4 Feb 2024 15:34:07 +0800 Subject: [PATCH] add AlreadyHaveResult function --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index a4a3cf2..d1558dc 100644 --- a/context.go +++ b/context.go @@ -121,7 +121,7 @@ func (c *Context) SetCookie(cookie *http.Cookie) { } func (c *Context) AlreadyHaveResult() (done bool, entry string) { - return c.resultentry == "", c.resultentry + return c.resultentry != "", c.resultentry } func (c *Context) RESULT(output interface{}) error {