Thread (42 messages) flat view 42 messages, 5 authors, 2021-09-01

Re: [PATCH v2 6/7] fetch: merge fetching and consuming refs

From: Patrick Steinhardt <hidden>
Date: 2021-09-01 12:50:10

On Wed, Aug 25, 2021 at 10:26:28AM -0400, Derrick Stolee wrote:
On 8/24/2021 6:37 AM, Patrick Steinhardt wrote:
quoted
-		if (ret) {
-			transport_unlock_pack(transport);
-			return ret;
-		}
+		if (ret)
+			goto out;
You were just reorganizing this method in the previous patch.
This "goto out" trick could have applied there instead, which
wouldn't complicate that patch and would simplify this one.

But perhaps it would look strange to have the following ending
to the method, even if for only one patch:

	return 0;

out:
	transport_unlock_pack(transport);
	return res;
}

So, feel free to ignore me here. Decide based on your taste.
I think you've got a point, I'll change this.

Patrick

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help