File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class SentryDatabase extends SentryDatabaseExecutor implements Database {
44
44
static const dbNameKey = 'db.name' ;
45
45
@internal
46
46
// ignore: public_member_api_docs
47
- String ? dbName;
47
+ String dbName;
48
48
49
49
/// ```dart
50
50
/// import 'package:sqflite/sqflite.dart';
@@ -82,7 +82,6 @@ class SentryDatabase extends SentryDatabaseExecutor implements Database {
82
82
try {
83
83
await _database.close ();
84
84
85
- dbName = null ;
86
85
span? .status = SpanStatus .ok ();
87
86
} catch (exception) {
88
87
span? .throwable = exception;
Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ void main() {
63
63
64
64
await db.close ();
65
65
66
- expect (db.dbName, null );
67
-
68
66
final span = fixture.tracer.children.last;
69
67
expect (span.context.operation, 'db' );
70
68
expect (span.context.description, 'Close DB: $inMemoryDatabasePath ' );
@@ -163,8 +161,6 @@ void main() {
163
161
expect (db.dbName, inMemoryDatabasePath);
164
162
165
163
await db.close ();
166
-
167
- expect (db.dbName, null );
168
164
});
169
165
170
166
tearDown (() {
You can’t perform that action at this time.
0 commit comments