Remove overly defensive nil org config guard on GET
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>pull/10616/head
parent
acaf2c5276
commit
1ab600e133
|
@ -52,10 +52,6 @@ func (s *Service) OrganizationConfig(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
if config == nil {
|
||||
Error(w, http.StatusBadRequest, "Organization configuration object was nil", s.Logger)
|
||||
return
|
||||
}
|
||||
res := newOrganizationConfigResponse(*config)
|
||||
|
||||
encodeJSON(w, http.StatusOK, res, s.Logger)
|
||||
|
|
Loading…
Reference in New Issue