Make sure New returns a value

This commit is contained in:
Tyler 2017-05-08 23:06:48 -04:00
parent 27630f0137
commit 05b36eab15
1 changed files with 1 additions and 1 deletions

View File

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