Skip to content

Commit f1df16d

Browse files
committed
format
1 parent 56f7aa8 commit f1df16d

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

supabase/lib/src/sentry_supabase_client.dart

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,29 +123,19 @@ class SentrySupabaseClient extends BaseClient {
123123
Operation? _extractOperation(String method, Map<String, String> headers) {
124124
switch (method) {
125125
case "GET":
126-
{
127-
return Operation.select;
128-
}
126+
return Operation.select;
129127
case "POST":
130-
{
131-
if (headers["Prefer"]?.contains("resolution=") ?? false) {
132-
return Operation.upsert;
133-
} else {
134-
return Operation.insert;
135-
}
128+
if (headers["Prefer"]?.contains("resolution=") ?? false) {
129+
return Operation.upsert;
130+
} else {
131+
return Operation.insert;
136132
}
137133
case "PATCH":
138-
{
139-
return Operation.update;
140-
}
134+
return Operation.update;
141135
case "DELETE":
142-
{
143-
return Operation.delete;
144-
}
136+
return Operation.delete;
145137
default:
146-
{
147-
return null;
148-
}
138+
return null;
149139
}
150140
}
151141

supabase/test/sentry_supabase_client_test.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ void main() {
197197
case "null-me":
198198
return null;
199199
default:
200-
{
201-
return value;
202-
}
200+
return value;
203201
}
204202
},
205203
);

0 commit comments

Comments
 (0)