chore(lint): fix some condition. (#624)
This commit is contained in:
@@ -457,5 +457,5 @@ Retry:
|
||||
goto Retry
|
||||
}
|
||||
|
||||
return
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ func TestIOSNotificationStructure(t *testing.T) {
|
||||
test := "test"
|
||||
expectBadge := 0
|
||||
message := "Welcome notification Server"
|
||||
expiration := int64(time.Now().Unix())
|
||||
expiration := time.Now().Unix()
|
||||
req := &PushNotification{
|
||||
ApnsID: test,
|
||||
Topic: test,
|
||||
|
||||
@@ -228,7 +228,7 @@ Retry:
|
||||
goto Retry
|
||||
}
|
||||
|
||||
return
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func logPush(cfg *config.ConfYaml, status, token string, req *PushNotification, err error) logx.LogPushEntry {
|
||||
|
||||
@@ -227,5 +227,5 @@ Retry:
|
||||
goto Retry
|
||||
}
|
||||
|
||||
return
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user