From: Jon Griffiths Date: Tue, 23 Feb 2016 07:15:15 +0000 (-0500) Subject: credential-cache--daemon: refactor check_socket_directory X-Git-Tag: v2.8.0-rc0~15^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a6e5e2864f96ebce9ec6656841c8965bcdf1b37f?ds=inline;hp=a6e5e2864f96ebce9ec6656841c8965bcdf1b37f 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 Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---