fix golint error.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-12-07 19:20:13 +08:00
parent 77fb11d0a5
commit 5f79283d4f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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) {