mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
sd-journal: swap condition to reduce indentation
No functional change, just refactoring.
This commit is contained in:
parent
3fc1e4f63a
commit
1e59254ac2
@ -937,7 +937,9 @@ static int find_location_with_matches(
|
||||
assert(ret);
|
||||
assert(offset);
|
||||
|
||||
if (!j->level0) {
|
||||
if (j->level0)
|
||||
return find_location_for_match(j, j->level0, f, direction, ret, offset);
|
||||
|
||||
/* No matches is simple */
|
||||
|
||||
if (j->current_location.type == LOCATION_HEAD)
|
||||
@ -973,8 +975,6 @@ static int find_location_with_matches(
|
||||
}
|
||||
|
||||
return journal_file_next_entry(f, 0, direction, ret, offset);
|
||||
} else
|
||||
return find_location_for_match(j, j->level0, f, direction, ret, offset);
|
||||
}
|
||||
|
||||
static int next_with_matches(
|
||||
|
Loading…
Reference in New Issue
Block a user