mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 15:29:22 +00:00
fix testing if executable is installed
This commit is contained in:
parent
98d2081afd
commit
bbb1bd1ddf
@ -132,7 +132,7 @@ public class ProcessUtil {
|
|||||||
return lookupGlobalNpmPackageExecutablePath(NPM_DIR, command)
|
return lookupGlobalNpmPackageExecutablePath(NPM_DIR, command)
|
||||||
.orElseThrow(() -> new RuntimeException("Could not locate command " + command));
|
.orElseThrow(() -> new RuntimeException("Could not locate command " + command));
|
||||||
} else {
|
} else {
|
||||||
return lookupGlobalNpmPackageExecutablePath(NPM_DIR, command).get();
|
return lookupGlobalNpmPackageExecutablePath(NPM_DIR, command).orElse(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user