From 5f79283d4ff7899cfdb7820919b33b98ea1ec258 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 7 Dec 2016 19:20:13 +0800 Subject: [PATCH] fix golint error. Signed-off-by: Bo-Yi Wu --- gorush/notification.go | 2 +- gorush/notification_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gorush/notification.go b/gorush/notification.go index f7433ab..9766655 100644 --- a/gorush/notification.go +++ b/gorush/notification.go @@ -168,7 +168,7 @@ func InitAPNSClient() error { case ".pem": CertificatePemIos, err = certificate.FromPemFile(PushConf.Ios.KeyPath, PushConf.Ios.Password) default: - err = errors.New("Wrong Certificate key extension.") + err = errors.New("wrong certificate key extension") } if err != nil { diff --git a/gorush/notification_test.go b/gorush/notification_test.go index efb2662..918979d 100644 --- a/gorush/notification_test.go +++ b/gorush/notification_test.go @@ -438,7 +438,7 @@ func TestWrongIosCertificateExt(t *testing.T) { err := InitAPNSClient() assert.Error(t, err) - assert.Equal(t, "Wrong Certificate key extension.", err.Error()) + assert.Equal(t, "wrong certificate key extension", err.Error()) } func TestAPNSClientDevHost(t *testing.T) {