journalctl-show: drop redundant condition

The combination of --follow and --reverse would have been
rejected in parse_argv() already.
This commit is contained in:
Mike Yuan
2025-12-18 17:37:26 +01:00
parent 58e9239fd7
commit 6dacabe534
+1 -1
View File
@@ -341,7 +341,7 @@ static int on_first_event(sd_event_source *s, void *userdata) {
if (r < 0)
return r;
if (arg_follow && !arg_reverse && !c->has_cursor && !arg_since_set) {
if (arg_follow && !c->has_cursor && !arg_since_set) {
r = sd_journal_get_cursor(c->journal, /* ret_cursor= */ NULL);
if (r == -EADDRNOTAVAIL) {
/* If we shall operate in --follow mode, and we are unable to get a cursor after