From 25e8ae5874cd28f88281b9ce4414e1728803986b Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Fri, 20 Dec 2024 12:17:37 +0530 Subject: [PATCH] fix tautological check --- libs/telemetry/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/telemetry/logger.go b/libs/telemetry/logger.go index 2c19b4b8..b1dd799b 100644 --- a/libs/telemetry/logger.go +++ b/libs/telemetry/logger.go @@ -100,7 +100,7 @@ func Flush(ctx context.Context, apiClient DatabricksApiClient) { // // Note: This will result in server side duplications but that's fine since // we can always deduplicate in the data pipeline itself. - if resp != nil && len(l.protoLogs) > int(resp.NumProtoSuccess) { + if len(l.protoLogs) > int(resp.NumProtoSuccess) { log.Debugf(ctx, "Not all logs were successfully sent. Retrying...") continue }