godoc/static: fix handling of playground snippets with no output
Fixes golang/go#11903 Change-Id: Ia7f85d83f1f697fd787a87cd74971f6cf0540792 Reviewed-on: https://go-review.googlesource.com/12751 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
7fe0389f47
commit
0f0e72bcc3
|
@ -49,7 +49,7 @@ function HTTPTransport() {
|
|||
var timeout;
|
||||
output({Kind: 'start'});
|
||||
function next() {
|
||||
if (events.length === 0) {
|
||||
if (!events || events.length === 0) {
|
||||
output({Kind: 'end'});
|
||||
return;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue