From c53a1998c589a544b25d53f6e6fdf0f24a4df25b Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Thu, 2 Feb 2023 21:25:25 +0800 Subject: all: replace `interface{}` with `any` (#7330) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/context/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/context/api.go') diff --git a/internal/context/api.go b/internal/context/api.go index b3922bb6..68afa8e7 100644 --- a/internal/context/api.go +++ b/internal/context/api.go @@ -58,7 +58,7 @@ func (c *APIContext) Error(err error, msg string) { } // Errorf renders the 500 response with formatted message. -func (c *APIContext) Errorf(err error, format string, args ...interface{}) { +func (c *APIContext) Errorf(err error, format string, args ...any) { c.Error(err, fmt.Sprintf(format, args...)) } -- cgit v1.2.3