Commit bec587d
fetch: use goto cleanup in cmd_fetch()
Replace an early return with 'goto cleanup' in cmd_fetch() so that the
string_list is always cleared (the string_list_clear() call is purely
cleanup; the string_list is not reused). This makes cleanup consistent
so that a subsequent commit can use 'goto cleanup' to bail out early.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 69a9c10 commit bec587d
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2076 | 2076 | | |
2077 | 2077 | | |
2078 | 2078 | | |
2079 | | - | |
| 2079 | + | |
| 2080 | + | |
2080 | 2081 | | |
2081 | 2082 | | |
2082 | 2083 | | |
| |||
2132 | 2133 | | |
2133 | 2134 | | |
2134 | 2135 | | |
2135 | | - | |
2136 | | - | |
2137 | 2136 | | |
2138 | 2137 | | |
2139 | 2138 | | |
| |||
2151 | 2150 | | |
2152 | 2151 | | |
2153 | 2152 | | |
| 2153 | + | |
| 2154 | + | |
2154 | 2155 | | |
2155 | 2156 | | |
0 commit comments