Simplify the boolean expression.

This commit is contained in:
tangwz 2022-10-13 23:05:05 +08:00 committed by GitHub
parent 3d2194fb0a
commit 61d13751b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,7 +509,7 @@ int main(int argc, char** argv) {
FLAGS_page_size = n; FLAGS_page_size = n;
} else if (sscanf(argv[i], "--compression=%d%c", &n, &junk) == 1 && } else if (sscanf(argv[i], "--compression=%d%c", &n, &junk) == 1 &&
(n == 0 || n == 1)) { (n == 0 || n == 1)) {
FLAGS_compression = n == 1; FLAGS_compression = (n == 1);
} else if (strncmp(argv[i], "--db=", 5) == 0) { } else if (strncmp(argv[i], "--db=", 5) == 0) {
FLAGS_db = argv[i] + 5; FLAGS_db = argv[i] + 5;
} else { } else {