Merge "[errorprone] Add parenthesis to clarify operator precedence"

This commit is contained in:
David Pursehouse 2019-10-25 21:55:33 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit 66aa2cc30c
1 changed files with 4 additions and 4 deletions

View File

@ -1787,8 +1787,8 @@ public File findHook(Repository repository, String hookName) {
}
File hookFile = new File(hookDir, hookName);
if (hookFile.isAbsolute()) {
if (!hookFile.exists() || FS.DETECTED.supportsExecute()
&& !FS.DETECTED.canExecute(hookFile)) {
if (!hookFile.exists() || (FS.DETECTED.supportsExecute()
&& !FS.DETECTED.canExecute(hookFile))) {
return null;
}
} else {
@ -1803,8 +1803,8 @@ public File findHook(Repository repository, String hookName) {
if (fs == null) {
fs = FS.DETECTED;
}
if (!Files.exists(hookPath) || fs.supportsExecute()
&& !fs.canExecute(hookPath.toFile())) {
if (!Files.exists(hookPath) || (fs.supportsExecute()
&& !fs.canExecute(hookPath.toFile()))) {
return null;
}
hookFile = hookPath.toFile();