Skip to content

Commit 62ae1b3

Browse files
authored
fix analyze issues (#2177)
1 parent 8ad0478 commit 62ae1b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dart/lib/src/event_processor/enricher/web_enricher_event_processor.dart

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class WebEnricherEventProcessor implements EnricherEventProcessor {
7171

7272
int? _getMemorySize() {
7373
// https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory
74+
// ignore: invalid_null_aware_operator
7475
final size = _window.navigator.deviceMemory?.toDouble();
7576
final memoryByteSize = size != null ? size * 1024 * 1024 * 1024 : null;
7677
return memoryByteSize?.toInt();
@@ -102,5 +103,6 @@ class WebEnricherEventProcessor implements EnricherEventProcessor {
102103
}
103104

104105
extension on web.Navigator {
106+
// ignore: unused_element
105107
external double? get deviceMemory;
106108
}

0 commit comments

Comments
 (0)