From 62ae1b341c4d15163191a18cb331e3ceebad9628 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Wed, 17 Jul 2024 15:32:39 +0200 Subject: [PATCH] fix analyze issues (#2177) --- .../event_processor/enricher/web_enricher_event_processor.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart b/dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart index d6d588ac0a..27bb6b99db 100644 --- a/dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart +++ b/dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart @@ -71,6 +71,7 @@ class WebEnricherEventProcessor implements EnricherEventProcessor { int? _getMemorySize() { // https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory + // ignore: invalid_null_aware_operator final size = _window.navigator.deviceMemory?.toDouble(); final memoryByteSize = size != null ? size * 1024 * 1024 * 1024 : null; return memoryByteSize?.toInt(); @@ -102,5 +103,6 @@ class WebEnricherEventProcessor implements EnricherEventProcessor { } extension on web.Navigator { + // ignore: unused_element external double? get deviceMemory; }