Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Fix logical error if adb is not detected
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju authored Sep 3, 2020
1 parent 8eb2a37 commit e51069b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guiscrcpy/lib/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class AdbRuntimeError(RuntimeError):

class AndroidDebugBridge:
def __init__(self, path=None):
if path is None:
if path is not None:
self.path = path
elif shutil.which('adb') is not None:
self.path = shutil.which('adb')
Expand Down

0 comments on commit e51069b

Please sign in to comment.