Fixed an warning that go vet found.
This commit is contained in:
+2
-2
@@ -11,13 +11,13 @@ import (
|
|||||||
|
|
||||||
var id = 0
|
var id = 0
|
||||||
|
|
||||||
func newApp() App {
|
func newApp() *App {
|
||||||
|
|
||||||
a := App{Name: "Test", AppID: strconv.Itoa(id), Key: "123", Secret: "123", OnlySSL: false, ApplicationDisabled: false, UserEvents: true}
|
a := App{Name: "Test", AppID: strconv.Itoa(id), Key: "123", Secret: "123", OnlySSL: false, ApplicationDisabled: false, UserEvents: true}
|
||||||
a.Init()
|
a.Init()
|
||||||
|
|
||||||
id++
|
id++
|
||||||
return a
|
return &a
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestConnect(t *testing.T) {
|
func TestConnect(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user