symlinks.c: small style cleanup
Add {}-braces around an else-part, where the if-part already has {}-braces. And, also remove some unnecessary "return;"-statements at the end of "void foo()"-functions. Signed-off-by: Kjetil Barvik <barvik@broadpark.no> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Kjetil Barvik committed
Jun 7, 2009 at 13:33 UTC
cb319c36312a16d8af9b635a75404bc0005c5119
1 file changed
+2
-4
symlinks.c
+2
-4
@@ -196,8 +196,9 @@ void invalidate_lstat_cache(const char *name, int len)
196
cache.path[previous_slash] = '\0';
197
cache.len = previous_slash;
198
cache.flags = FL_DIR;
199
- } else
199
+ } else {
200
reset_lstat_cache();
201
+ }
202
}
203
}
204
@@ -263,7 +264,6 @@ static void do_remove_scheduled_dirs(int new_len)
264
removal.path[removal.len] != '/');
265
}
266
removal.len = new_len;
266
- return;
267
}
268
269
void schedule_dir_for_removal(const char *name, int len)
@@ -296,11 +296,9 @@ void schedule_dir_for_removal(const char *name, int len)
296
last_slash - match_len);
297
removal.len = last_slash;
298
}
299
- return;
299
}
300
301
void remove_scheduled_dirs(void)
302
{
303
do_remove_scheduled_dirs(0);
305
- return;
304
}