Skip to content

Commit 487ea8c

Browse files
Copilotwinnerspiros
andcommitted
Address code review: remove unnecessary braces and specify catch exception types
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/7246c167-0b69-48a2-9b47-0771fe6d1e63 Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent 79f6b65 commit 487ea8c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

osu.Android/OsuGameAndroid.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ protected override void LoadComplete()
140140
});
141141
}
142142
else if (nativeBridges != null)
143-
{
144143
stopOboeBridge();
145-
}
146144
}
147145
catch (Exception ex)
148146
{
@@ -373,7 +371,7 @@ public override double? ChargeLevel
373371
{
374372
return Battery.ChargeLevel;
375373
}
376-
catch
374+
catch (Exception)
377375
{
378376
return null;
379377
}
@@ -388,7 +386,7 @@ public override bool OnBattery
388386
{
389387
return Battery.PowerSource == BatteryPowerSource.Battery;
390388
}
391-
catch
389+
catch (Exception)
392390
{
393391
return false;
394392
}

0 commit comments

Comments
 (0)