mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
tools: Command: Fix always-True validation in ctor
Instead of testing the truthiness of the method (always True), call it. BUG=b:233346153 TEST=tools/dev_container bash -c 'echo Hello' Change-Id: I761d848ea3811ff721420de8f4b626e11288acee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3649552 Auto-Submit: Pierre-Clément Tosi <ptosi@google.com> Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
parent
8736f39fe5
commit
d28162f170
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class Command(object):
|
|||
self.env_vars = env_vars
|
||||
if len(self.args) > 0:
|
||||
executable = self.args[0]
|
||||
if Path(executable).exists:
|
||||
if Path(executable).exists():
|
||||
self.executable = Path(executable)
|
||||
else:
|
||||
path = shutil.which(executable)
|
||||
|
|
Loading…
Reference in a new issue