mirror of
https://github.com/rancher/norman.git
synced 2025-09-01 07:08:59 +00:00
Fix golangci-lint issues
As part of updating dapper files, golangci-lint was set to be used. This caused a lot of lint issues to crop up, which this fixes.
This commit is contained in:
@@ -18,14 +18,14 @@ type EncodingResponseWriter struct {
|
||||
}
|
||||
|
||||
func (j *EncodingResponseWriter) start(apiContext *types.APIContext, code int, obj interface{}) {
|
||||
AddCommonResponseHeader(apiContext)
|
||||
_ = AddCommonResponseHeader(apiContext)
|
||||
apiContext.Response.Header().Set("content-type", j.ContentType)
|
||||
apiContext.Response.WriteHeader(code)
|
||||
}
|
||||
|
||||
func (j *EncodingResponseWriter) Write(apiContext *types.APIContext, code int, obj interface{}) {
|
||||
j.start(apiContext, code, obj)
|
||||
j.Body(apiContext, apiContext.Response, obj)
|
||||
_ = j.Body(apiContext, apiContext.Response, obj)
|
||||
}
|
||||
|
||||
func (j *EncodingResponseWriter) Body(apiContext *types.APIContext, writer io.Writer, obj interface{}) error {
|
||||
|
Reference in New Issue
Block a user