Make sure New returns a value
This commit is contained in:
parent
27630f0137
commit
05b36eab15
|
@ -12,7 +12,7 @@ type OvrStatApi struct {
|
||||||
URL string
|
URL string
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(apiUrl string) {
|
func New(apiUrl string) *OvrStatApi {
|
||||||
return &OvrStatApi{Client: &http.Client{}, URL: apiUrl}
|
return &OvrStatApi{Client: &http.Client{}, URL: apiUrl}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue