Skip to content

Commit 5b44cd9

Browse files
committed
NewClient should not require an API key
1 parent 18a5005 commit 5b44cd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

goip.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func buildProUri(ip string, apiKey string) string {
120120
}
121121

122122
// NewClient returns a new client
123-
func NewClient(apiKey string) Client {
123+
func NewClient() Client {
124124
return &StandardClient{URI: STANDARD_URI, HttpClient: &http.Client{}}
125125
}
126126

goip_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func TestBuildProUriWithIp(t *testing.T) {
208208
}
209209

210210
func TestNewClient(t *testing.T) {
211-
client := NewClient("")
211+
client := NewClient()
212212
if client == nil {
213213
t.Error("Should return a client")
214214
}

0 commit comments

Comments
 (0)