]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
transport: remove unnecessary indenting in transport_push()
authorFrantisek Hrbata <frantisek@hrbata.com>
Fri, 20 May 2022 12:49:50 +0000 (14:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 May 2022 21:51:16 +0000 (14:51 -0700)
commit6448182a831a5704601b7ad29afa1a26c40a4d53
tree054609574a518e2164bad3b44ca0e15f25f88c30
parente54793a95afeea1e10de1e5ad7eab914e7416250
transport: remove unnecessary indenting in transport_push()

Remove the big indented block for transport_push() check in transport vtable
and let's just return error immediately. Hopefully this makes the code
more readable.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
Reviewed-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c