Skip to content

Commit

Permalink
remove assert
Browse files Browse the repository at this point in the history
  • Loading branch information
longjunyu2 committed Jul 14, 2024
1 parent e74199b commit 3991b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/winlator/winhandler/WinHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ private void handleRequest(byte requestCode, final int port) {

if (!useVirtualGamepad && (currentController == null || !currentController.isConnected())) {
currentController = ExternalController.getController(0);
assert currentController != null;
currentController.setTriggerMode(triggerMode);
if (currentController != null)
currentController.setTriggerMode(triggerMode);
}

final boolean enabled = currentController != null || useVirtualGamepad;
Expand Down

0 comments on commit 3991b02

Please sign in to comment.