From 316a252403ab4fdda81bc34528625cd28dca9c0a Mon Sep 17 00:00:00 2001 From: Aymen Dirar Date: Mon, 24 Oct 2022 20:50:49 -0700 Subject: cleanup --- entries/adirar111/c-filesystem/fib-fs.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/entries/adirar111/c-filesystem/fib-fs.c b/entries/adirar111/c-filesystem/fib-fs.c index d07c205..73126b6 100644 --- a/entries/adirar111/c-filesystem/fib-fs.c +++ b/entries/adirar111/c-filesystem/fib-fs.c @@ -119,14 +119,13 @@ long fib(long n) { if (is_in_cache(list_of_files, size_of_lof, n)) { free(list_of_files); - long cached_value = read_from_cache(path); - return cached_value; + return read_from_cache(path); } free(list_of_files); - long toCache = fib(n-1) + fib(n-2); - write_to_cache(path, toCache); - return toCache; + long to_cache = fib(n-1) + fib(n-2); + write_to_cache(path, to_cache); + return to_cache; } -- cgit v1.2.3-70-g09d2