Skip to content

Commit 54acf91

Browse files
authored
chore: fix analyze in Dart and Hive (#3174)
1 parent c1e775e commit 54acf91

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/dart/lib/src/protocol/access_aware_map.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'dart:collection';
33
import 'package:meta/meta.dart';
44

55
@internal
6-
class AccessAwareMap<String, V> extends MapBase<String, V> {
6+
class AccessAwareMap<V> extends MapBase<String, V> {
77
AccessAwareMap(this._map);
88

99
final Map<String, V> _map;

packages/file/lib/src/sentry_io_overrides.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import '../sentry_file.dart';
66
/// If set to [IOOverrides.global], newly created [File] instances will be of
77
/// type [SentryFile].
88
/// Enable by adding [SentryIOOverridesIntegration] to [SentryOptions].
9-
class SentryIOOverrides extends IOOverrides {
9+
final class SentryIOOverrides extends IOOverrides {
1010
final Hub _hub;
1111

1212
SentryIOOverrides(this._hub);

packages/flutter/lib/src/feedback/sentry_feedback_widget.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class _SentryFeedbackWidgetState extends State<SentryFeedbackWidget> {
9494
void initState() {
9595
super.initState();
9696

97-
if(widget.options.useSentryUser) {
97+
if (widget.options.useSentryUser) {
9898
_setSentryUserData();
9999
}
100100
_restorePreservedData();
@@ -420,14 +420,14 @@ class _SentryFeedbackWidgetState extends State<SentryFeedbackWidget> {
420420

421421
void _setSentryUserData() {
422422
final user = _getUser();
423-
if(user == null) return;
423+
if (user == null) return;
424424

425425
final userName = user.name;
426-
if(userName != null) {
426+
if (userName != null) {
427427
_nameController.text = userName;
428428
}
429429
final userEmail = user.email;
430-
if(userEmail != null) {
430+
if (userEmail != null) {
431431
_emailController.text = userEmail;
432432
}
433433
}

packages/flutter/test/feedback/sentry_feedback_widget_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,16 @@ void main() {
253253
expect(emailField.controller?.text, "[email protected]");
254254
});
255255

256-
testWidgets('does not prefill form data if useSentryUser is false', (tester) async {
256+
testWidgets('does not prefill form data if useSentryUser is false',
257+
(tester) async {
257258
fixture.options.feedback.useSentryUser = false;
258259
fixture.hub.configureScope((scope) {
259260
scope.setUser(fixture.sentryUser);
260261
});
261262

262263
await fixture.pumpFeedbackWidget(
263264
tester,
264-
(hub) => SentryFeedbackWidget(hub: hub),
265+
(hub) => SentryFeedbackWidget(hub: hub),
265266
);
266267

267268
final nameField = tester.widget<TextFormField>(
@@ -274,7 +275,6 @@ void main() {
274275
expect(nameField.controller?.text, isEmpty);
275276
expect(emailField.controller?.text, isEmpty);
276277
});
277-
278278
});
279279

280280
group('$SentryFeedbackWidget uses naming from options', () {

0 commit comments

Comments
 (0)