From 6c5cc88580af14e42aaaec35607dc35f15804d10 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 25 Dec 2020 10:28:51 +0100 Subject: Cleanup: Do not do if-true-then-true-else-false here Signed-off-by: Matthias Beyer --- tasklst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasklst.c b/tasklst.c index 7e8b22f..13c7d8c 100644 --- a/tasklst.c +++ b/tasklst.c @@ -71,7 +71,7 @@ task_lst_set_expiration(TaskLst *list, int64_t delta) int task_lst_expired(TaskLst list) { - return (time(NULL) > list.expiry) ? 1 : 0; + return time(NULL) > list.expiry; } int -- cgit v1.2.3