fix: 修复 golangci-lint errcheck 错误

This commit is contained in:
2026-04-20 04:37:03 +08:00
parent 1685aa4428
commit aebdb5ce70
8 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -39,6 +39,6 @@ func (api AccessSettingApi) ShellAssistantEndpoint(c echo.Context) error {
c.Response().Header().Set("Cache-Control", "no-cache")
c.Response().Header().Set("Connection", "keep-alive")
c.Response().Write([]byte("data: {\"success\":false,\"error\":\"Shell assistant is not configured\"}\n\n"))
_, _ = c.Response().Write([]byte("data: {\"success\":false,\"error\":\"Shell assistant is not configured\"}\n\n"))
return nil
}