diff options
author | Jon Griffiths <jon_p_griffiths@yahoo.com> | 2016-02-23 02:15:15 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-23 12:56:26 -0800 |
commit | a6e5e2864f96ebce9ec6656841c8965bcdf1b37f (patch) | |
tree | 0afda1518a217c67b7691f6ab357ba9136d103b8 /ll-merge.h | |
parent | 326e5bc91eecf73234ead29636207bc516573e79 (diff) | |
download | git-a6e5e2864f96ebce9ec6656841c8965bcdf1b37f.tar.gz |
credential-cache--daemon: refactor check_socket_directory
This function does an early return, and therefore has to
repeat its cleanup. We can stick the later bit of the
function into an "else" and avoid duplicating the shared
part (which will get bigger in a future patch).
Let's also rename the function to init_socket_directory. It
not only checks the directory but also creates it. Saying
"init" is more accurate.
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'll-merge.h')
0 files changed, 0 insertions, 0 deletions