From e1052a60ad3c10a8cf3603fd278bf123c7e8f595 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 21 Nov 2019 16:19:14 +0100 Subject: [PATCH] refactor: hlint --- src/Application.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application.hs b/src/Application.hs index c7a8e046a..2da92e313 100644 --- a/src/Application.hs +++ b/src/Application.hs @@ -379,7 +379,7 @@ warpSettings foundation = defaultSettings Systemd.notifyReady readyMetric ts = Prometheus.Metric $ return (MkReadySince, collectReadySince) where - collectReadySince = return $ [Prometheus.SampleGroup info Prometheus.GaugeType [Prometheus.Sample "ready_time" [] sample]] + collectReadySince = return [Prometheus.SampleGroup info Prometheus.GaugeType [Prometheus.Sample "ready_time" [] sample]] info = Prometheus.Info "ready_time" "POSIXTime this Uni2work-instance became ready" sample = encodeUtf8 . tshow . (realToFrac :: POSIXTime -> Nano) $ utcTimeToPOSIXSeconds ts if