mirror of https://github.com/status-im/consul.git
agent-http: cleanup: return nil instead of err (#8043)
Since err is already checked, it should return `nil`
This commit is contained in:
parent
49fc7eb4bb
commit
808f632346
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue