aboutsummaryrefslogtreecommitdiff
path: root/internal/context/api.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2023-02-02 21:25:25 +0800
committerGitHub <noreply@github.com>2023-02-02 21:25:25 +0800
commitc53a1998c589a544b25d53f6e6fdf0f24a4df25b (patch)
tree1c3c9d693ba551eecfbc535be942e40b5acf9cf7 /internal/context/api.go
parent614382fec0ba05149785539ab93560d4d42c194d (diff)
all: replace `interface{}` with `any` (#7330)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/context/api.go')
-rw-r--r--internal/context/api.go2
1 files changed, 1 insertions, 1 deletions
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...))
}