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 hashicorp-ci
parent fc1baf2223
commit 657db029b2

View File

@ -599,7 +599,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.