agent-http: cleanup: return nil instead of err (#8043)

Since err is already checked, it should return `nil`
This commit is contained in:
gitforbit 2020-06-24 14:29:21 +02:00 committed by GitHub
parent 49fc7eb4bb
commit 808f632346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ func (s *HTTPServer) marshalJSON(req *http.Request, obj interface{}) ([]byte, er
if err != nil {
return nil, err
}
return buf, err
return buf, nil
}
// Returns true if the UI is enabled.