R: review fix

This commit is contained in:
aki-0421 2023-04-05 08:43:56 +09:00
parent bed08977b8
commit 79014c20c7
No known key found for this signature in database
GPG Key ID: 64A8CF6D437D166A

View File

@ -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,
}
}