From 0982edecdcc1706e7fe78549c82842f8a782bb36 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 17 Apr 2016 13:14:27 +0800 Subject: [PATCH] fix gofmt error. Signed-off-by: Bo-Yi Wu --- gorush/notification.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gorush/notification.go b/gorush/notification.go index cb941f6..182bb65 100644 --- a/gorush/notification.go +++ b/gorush/notification.go @@ -220,7 +220,7 @@ func iosAlertDictionary(payload *payload.Payload, req PushNotification) *payload func GetIOSNotification(req PushNotification) *apns.Notification { notification := &apns.Notification{ ApnsID: req.ApnsID, - Topic: req.Topic, + Topic: req.Topic, } if req.Expiration > 0 { @@ -303,13 +303,13 @@ func PushToIOS(req PushNotification) bool { // https://developers.google.com/cloud-messaging/http-server-ref func GetAndroidNotification(req PushNotification) gcm.HttpMessage { notification := gcm.HttpMessage{ - To: req.To, - CollapseKey: req.CollapseKey, - ContentAvailable: req.ContentAvailable, - DelayWhileIdle: req.DelayWhileIdle, - TimeToLive: req.TimeToLive, + To: req.To, + CollapseKey: req.CollapseKey, + ContentAvailable: req.ContentAvailable, + DelayWhileIdle: req.DelayWhileIdle, + TimeToLive: req.TimeToLive, RestrictedPackageName: req.RestrictedPackageName, - DryRun: req.DryRun, + DryRun: req.DryRun, } notification.RegistrationIds = req.Tokens