Skip to content

Commit d3abf2e

Browse files
committed
Fix compilation
1 parent 001adf1 commit d3abf2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/handler/loki.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func (h *Handlers) LokiMetrics() func(w http.ResponseWriter, r *http.Request) {
235235
writeError(w, http.StatusBadRequest, "Loki is disabled")
236236
return
237237
}
238-
if h.Cfg.Loki.Status != nil {
238+
if h.Cfg.Loki.Status != "" {
239239
writeError(w, http.StatusBadRequest, "Status URL endpoints are unavailable when using LokiStack operator. Status is provided via operator conditions.")
240240
return
241241
}
@@ -258,7 +258,7 @@ func (h *Handlers) LokiBuildInfos() func(w http.ResponseWriter, r *http.Request)
258258
writeError(w, http.StatusBadRequest, "Loki is disabled")
259259
return
260260
}
261-
if h.Cfg.Loki.Status != nil {
261+
if h.Cfg.Loki.Status != "" {
262262
writeError(w, http.StatusBadRequest, "Loki status URL is not usable with Loki operator")
263263
return
264264
}
@@ -276,7 +276,7 @@ func (h *Handlers) LokiBuildInfos() func(w http.ResponseWriter, r *http.Request)
276276
}
277277

278278
func (h *Handlers) fetchLokiConfig(cl httpclient.Caller, output any) error {
279-
if h.Cfg.Loki.Status != nil {
279+
if h.Cfg.Loki.Status != "" {
280280
return fmt.Errorf("loki status url is not usable with Loki operator")
281281
}
282282

0 commit comments

Comments
 (0)