mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
R: review fix
This commit is contained in:
parent
bed08977b8
commit
79014c20c7
@ -1,7 +1,6 @@
|
||||
package fetch
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"syscall/js"
|
||||
|
||||
"github.com/syumai/workers/internal/jsutil"
|
||||
@ -9,8 +8,6 @@ import (
|
||||
|
||||
// Client is an HTTP client.
|
||||
type Client struct {
|
||||
*http.Client
|
||||
|
||||
// namespace - Objects that Fetch API belongs to. Default is Global
|
||||
namespace js.Value
|
||||
}
|
||||
@ -18,7 +15,6 @@ type Client struct {
|
||||
// NewClient returns new Client
|
||||
func NewClient() *Client {
|
||||
return &Client{
|
||||
Client: &http.Client{},
|
||||
namespace: jsutil.Global,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user