Skip to content

Commit 2e189f2

Browse files
committed
format
1 parent 07087aa commit 2e189f2

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

dart/lib/src/event_processor/exception/io_exception_event_processor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ SentryException _sentryExceptionFromOsError(OSError osError) {
115115
meta: {
116116
'errno': {'number': osError.errorCode},
117117
},
118-
source: 'osError'
118+
source: 'osError',
119119
),
120120
);
121121
}

dart/lib/src/sentry_exception_factory.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import '../sentry.dart';
21
import 'protocol.dart';
32
import 'recursive_exception_cause_extractor.dart';
43
import 'sentry_options.dart';
@@ -21,13 +20,13 @@ class SentryExceptionFactory {
2120
dynamic stackTrace,
2221
bool? removeSentryFrames,
2322
}) {
24-
Mechanism? mechanism;
2523
var throwable = exception;
26-
24+
Mechanism? mechanism;
25+
2726
bool? snapshot;
2827
if (exception is ThrowableMechanism) {
29-
mechanism = exception.mechanism;
3028
throwable = exception.throwable;
29+
mechanism = exception.mechanism;
3130
snapshot = exception.snapshot;
3231
}
3332

dart/test/recursive_exception_cause_extractor_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ void main() {
4949
final sut = fixture.getSut();
5050

5151
final flattened = sut.flatten(errorA, null);
52-
final actual = flattened.map((exceptionCause) => exceptionCause.source).toList();
52+
final actual =
53+
flattened.map((exceptionCause) => exceptionCause.source).toList();
5354
expect(actual, [null, "other", "anotherOther"]);
5455
});
5556

dart/test/sentry_exception_factory_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ void main() {
251251

252252
test('adds generic type mechanism if there is none', () {
253253
final sentryException =
254-
fixture.getSut(attachStacktrace: false).getSentryException(
255-
SentryStackTraceError(),
256-
stackTrace: SentryStackTrace(),
257-
);
254+
fixture.getSut(attachStacktrace: false).getSentryException(
255+
SentryStackTraceError(),
256+
stackTrace: SentryStackTrace(),
257+
);
258258

259259
expect(sentryException.mechanism, isNotNull);
260260
expect(sentryException.mechanism?.type, 'generic');

0 commit comments

Comments
 (0)