fix golint error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
77fb11d0a5
commit
5f79283d4f
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue