Skip to content

Commit 6a451b8

Browse files
committed
Small style changes
1 parent 1aa1b30 commit 6a451b8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/natives/fs_vfsdata.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/natives/src/net/http/fetch.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ func (t *fetchTransport) RoundTrip(req *Request) (*Response, error) {
116116
}
117117
},
118118
func(reason *js.Object) {
119-
var jsErr error
119+
var err error
120120
if reason != nil {
121-
jsErr = fmt.Errorf("net/http: fetch failed: %s", reason.String())
121+
err = fmt.Errorf("net/http: fetch() failed: %s", reason.String())
122122
} else {
123-
jsErr = errors.New("net/http: fetch() failed")
123+
err = errors.New("net/http: fetch() failed")
124124
}
125125

126126
select {
127-
case errCh <- jsErr:
127+
case errCh <- err:
128128
case <-req.Context().Done():
129129
}
130130
},

0 commit comments

Comments
 (0)