fix: 修复 golangci-lint errcheck 错误
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user