Re: [whatwg/streams] Editorial: consistently use minimal returns (#612)

domenic commented on this pull request.



> @@ -826,7 +826,7 @@ noticable asymmetry between the two branches. [[!HTML]]
   1. Set _pull_.[[branch1]] to _branch1Stream_.[[readableStreamController]].
   1. Set _pull_.[[branch2]] to _branch2Stream_.[[readableStreamController]].
   1. <a>Upon rejection</a> of _reader_.[[closedPromise]] with reason _r_,
-    1. If _teeState_.[[closedOrErrored]] is *true*, return *undefined*.
+    1. If _teeState_.[[closedOrErrored]] is *true*, return.

This is actually inside the "closure" created by "upon rejection". But probably it's better to not use "return" in such steps at all, as it's somewhat ambiguous. Let me restructure.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/612

Received on Tuesday, 15 November 2016 03:59:11 UTC