Skip to content

Commit 7670e73

Browse files
committed
format code snippet
1 parent a8e2293 commit 7670e73

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

CHANGELOG.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
- Add attachments to `Hint` ([#1404](https://github.com/getsentry/sentry-dart/pull/1404))
1717

1818
```dart
19-
import 'dart:convert';
20-
21-
options.beforeSend = (event, {hint}) {
22-
final text = 'This event should not be sent happen in prod. Investigate.';
23-
final textAttachment = SentryAttachment.fromIntList(
24-
utf8.encode(text),
25-
'event_info.txt',
26-
contentType: 'text/plain',
27-
);
28-
hint?.attachments.add(textAttachment);
29-
return event;
30-
};
19+
import 'dart:convert';
20+
21+
options.beforeSend = (event, {hint}) {
22+
final text = 'This event should not be sent happen in prod. Investigate.';
23+
final textAttachment = SentryAttachment.fromIntList(
24+
utf8.encode(text),
25+
'event_info.txt',
26+
contentType: 'text/plain',
27+
);
28+
hint?.attachments.add(textAttachment);
29+
return event;
30+
};
3131
```
3232

3333
### Fixes

0 commit comments

Comments
 (0)