Skip to content

Commit

Permalink
fix(main): simplify vibration support check
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 committed Jan 30, 2025
1 parent fc3da4e commit 703a679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void main() async {

try {
if (Platform.isAndroid || Platform.isIOS) {
if (await Vibration.hasCustomVibrationsSupport() != null) {
if (await Vibration.hasCustomVibrationsSupport()) {

Check warning on line 92 in lib/main.dart

View check run for this annotation

Codecov / codecov/patch

lib/main.dart#L92

Added line #L92 was not covered by tests
configProvider.setValidVibrator(true);
} else {
configProvider.setValidVibrator(false);
Expand Down

0 comments on commit 703a679

Please sign in to comment.