Skip to content

Commit

Permalink
Reduce indentation by inverting NULL check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 14, 2023
1 parent 32886da commit 4006f55
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions handwritten/asm_hexagon_c/initialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ static void compile_token_patterns(RZ_INOUT RzPVector /*<RzAsmTokenPattern *>*/
void **it;
rz_pvector_foreach (patterns, it) {
RzAsmTokenPattern *pat = *it;
if (pat->regex) {
continue;
}
pat->regex = rz_regex_new(pat->pattern, "e");
if (!pat->regex) {
pat->regex = rz_regex_new(pat->pattern, "e");
if (!pat->regex) {
RZ_LOG_WARN("Did not compile regex pattern %s.\n", pat->pattern);
rz_warn_if_reached();
}
RZ_LOG_WARN("Did not compile regex pattern %s.\n", pat->pattern);
rz_warn_if_reached();
}
}
}
Expand Down

0 comments on commit 4006f55

Please sign in to comment.