From 1f44023ebe5f0bacf9fca6bf0cd5ed4eb014307a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Farkas?= Date: Mon, 18 Oct 2021 12:35:56 +0200 Subject: [PATCH] Loki: fix typescript-strict-mode error (#40566) * loki: fix typescript-strict error * loki: fix typescript-strict-mode error --- public/app/plugins/datasource/loki/live_streams.ts | 2 +- scripts/ci-check-strict.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/loki/live_streams.ts b/public/app/plugins/datasource/loki/live_streams.ts index fd96048a707..be252116786 100644 --- a/public/app/plugins/datasource/loki/live_streams.ts +++ b/public/app/plugins/datasource/loki/live_streams.ts @@ -38,7 +38,7 @@ export class LiveStreams { data.meta = { ...data.meta, preferredVisualisationType: 'logs' }; data.refId = target.refId; - stream = webSocket(target.url).pipe( + stream = webSocket(target.url).pipe( map((response: LokiTailResponse) => { appendResponseToBufferedData(response, data); return [data]; diff --git a/scripts/ci-check-strict.sh b/scripts/ci-check-strict.sh index 4203fefd658..2a70a11f7c3 100755 --- a/scripts/ci-check-strict.sh +++ b/scripts/ci-check-strict.sh @@ -3,7 +3,7 @@ set -e echo -e "Collecting code stats (typescript errors & more)" -ERROR_COUNT_LIMIT=13 +ERROR_COUNT_LIMIT=12 ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strict true | grep -oP 'Found \K(\d+)')" if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then