Skip to content

Commit ec4909d

Browse files
committed
fix analyzer warning
1 parent 791ece2 commit ec4909d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example/lib/theme.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ class LiveKitTheme {
3232
foregroundColor: MaterialStateProperty.all<Color>(Colors.white),
3333
// backgroundColor: MaterialStateProperty.all<Color>(accentColor),
3434
backgroundColor: MaterialStateProperty.resolveWith((states) {
35-
if (states.contains(MaterialState.disabled))
35+
if (states.contains(MaterialState.disabled)) {
3636
return accentColor.withOpacity(0.5);
37+
}
3738
return accentColor;
3839
}),
3940
),

lib/src/signal_client.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ class SignalClient extends Disposable with EventsEmittable<SignalEvent> {
7676
// Attempt Validation
7777
try {
7878
final validateResponse = await http.get(validateUri);
79-
if (validateResponse.statusCode != 200)
79+
if (validateResponse.statusCode != 200) {
8080
throw ConnectException(validateResponse.body);
81+
}
8182
throw ConnectException();
8283
} catch (error) {
8384
// Pass it up if it's already a `ConnectError`

0 commit comments

Comments
 (0)