Remove overly defensive nil org config guard on GET

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
pull/10616/head
Alirie Gray 2018-07-10 11:52:30 -07:00
parent acaf2c5276
commit 1ab600e133
1 changed files with 0 additions and 4 deletions

View File

@ -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)