analyze: don't use Yoda conditions
This commit is contained in:
committed by
Luca Boccassi
parent
b189f0d455
commit
3ed5c6aa9b
@@ -56,7 +56,7 @@ static int analyze_elf(char **filenames, sd_json_format_flags_t json_flags) {
|
||||
* metadata is parsed recursively in core files, so there might be
|
||||
* multiple modules. */
|
||||
if (STR_IN_SET(module_name, "elfType", "elfArchitecture")) {
|
||||
if (streq(module_name, "elfType") && streq("coredump", sd_json_variant_string(module_json)))
|
||||
if (streq(module_name, "elfType") && streq(sd_json_variant_string(module_json), "coredump"))
|
||||
coredump = true;
|
||||
|
||||
r = table_add_many(
|
||||
|
||||
Reference in New Issue
Block a user