mirror of
https://github.com/status-im/consul.git
synced 2025-01-20 18:50:04 +00:00
agent-http: cleanup: return nil instead of err (#8043)
Since err is already checked, it should return `nil`
This commit is contained in:
parent
fc1baf2223
commit
657db029b2
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user