Commit 176cd68
transport-helper: call do_take_over() in process_connect
The existing pattern among all callers of process_connect() seems to be
if (process_connect(...)) {
do_take_over();
... dispatch to the underlying method ...
}
... otherwise implement the fallback ...
where the return value from process_connect() is the return value of the
call it makes to process_connect_service().
Move the call of do_take_over() inside process_connect(), so that
calling the process_connect() function is more concise and will not
miss do_take_over().
Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 35d26e7 commit 176cd68
1 file changed
+9
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
652 | 653 | | |
653 | 654 | | |
654 | 655 | | |
655 | 656 | | |
656 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
657 | 661 | | |
658 | 662 | | |
659 | 663 | | |
| |||
685 | 689 | | |
686 | 690 | | |
687 | 691 | | |
688 | | - | |
689 | | - | |
| 692 | + | |
690 | 693 | | |
691 | | - | |
692 | 694 | | |
693 | 695 | | |
694 | 696 | | |
| |||
1145 | 1147 | | |
1146 | 1148 | | |
1147 | 1149 | | |
1148 | | - | |
1149 | | - | |
| 1150 | + | |
1150 | 1151 | | |
1151 | | - | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | 1154 | | |
| |||
1189 | 1189 | | |
1190 | 1190 | | |
1191 | 1191 | | |
1192 | | - | |
1193 | | - | |
| 1192 | + | |
1194 | 1193 | | |
1195 | 1194 | | |
1196 | | - | |
1197 | 1195 | | |
1198 | 1196 | | |
1199 | 1197 | | |
| |||
1277 | 1275 | | |
1278 | 1276 | | |
1279 | 1277 | | |
1280 | | - | |
1281 | | - | |
| 1278 | + | |
1282 | 1279 | | |
1283 | | - | |
1284 | 1280 | | |
1285 | 1281 | | |
1286 | 1282 | | |
| |||
0 commit comments