Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dehaansa committed Nov 27, 2024
1 parent d51b7c8 commit 90125d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/web/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ func getComponentHandlerRemoteCfg(host service.Host) http.HandlerFunc {
return
}

getComponentHandlerInternal(svc.Data().(remotecfg.Data).Host, w, r)
data := svc.Data().(remotecfg.Data)
if data.Host == nil {
http.Error(w, "remote config service startup in progress", http.StatusInternalServerError)
return
}

getComponentHandlerInternal(data.Host, w, r)
}
}

Expand Down

0 comments on commit 90125d0

Please sign in to comment.