From d41c16052f1ffdde887de8bb85ce5d8f095e1ea0 Mon Sep 17 00:00:00 2001 From: promalert Date: Wed, 7 Jan 2026 15:06:40 +0800 Subject: [PATCH] chore: fix function name in comment Signed-off-by: promalert --- api/projects/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/projects/tasks.go b/api/projects/tasks.go index 2080a47fe..e679dbfa9 100644 --- a/api/projects/tasks.go +++ b/api/projects/tasks.go @@ -159,7 +159,7 @@ func GetTaskMiddleware(next http.Handler) http.Handler { }) } -// GetTaskMiddleware is middleware that gets a task by id and sets the context to it or panics +// NewTaskMiddleware is middleware that binds a task from the request body and sets the context to it func NewTaskMiddleware(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {