clang-tidy: enable readability-simplify-boolean-expr and fix

This commit is contained in:
Daniel Agar
2019-10-27 19:19:07 -04:00
parent 279df3b1b8
commit 967446af4c
15 changed files with 53 additions and 93 deletions
+1 -5
View File
@@ -590,11 +590,7 @@ bool is_already_running(int instance)
if (fcntl(fd, F_SETLK, &fl) == -1) {
// We failed to create a file lock, must be already locked.
if (errno == EACCES || errno == EAGAIN) {
return true;
}
return false;
return errno == EACCES || errno == EAGAIN;
}
errno = 0;