From 7cde9aeb5dccce578c1eed13cf1ed2c61e446800 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 21 Jun 2026 01:33:58 +0000 Subject: huge code cleanup --- src/is_updated.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/is_updated.c') diff --git a/src/is_updated.c b/src/is_updated.c index 5fce96b..68e6d2e 100644 --- a/src/is_updated.c +++ b/src/is_updated.c @@ -6,15 +6,14 @@ #include "is_updated.h" #include "cmd_out.h" -#include "vars.h" bool is_updated(const char *src) { - if (src && strlen(src) > 0 && chdir(src) != 0) { - return false; - } + if (src && strlen(src) > 0 && chdir(src) != 0) { + return false; + } - char *output = cmd_out("git pull"); - bool result = (strstr(output, "Already up to date.") != NULL); - free(output); - return result; + char *output = cmd_out("git pull"); + bool result = (strstr(output, "Already up to date.") != NULL); + free(output); + return result; } \ No newline at end of file -- cgit v1.2.3