mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 00:27: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
49fc7eb4bb
commit
808f632346
@ -608,7 +608,7 @@ func (s *HTTPServer) marshalJSON(req *http.Request, obj interface{}) ([]byte, er
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return buf, err
|
return buf, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns true if the UI is enabled.
|
// Returns true if the UI is enabled.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user