Skip to content

Commit d95b0d6

Browse files
authored
Fix ineffassign and category json example (#120)
* Fix certificate test ineffassign * Fix category json example
1 parent 5c6f7af commit d95b0d6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

payload/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (p *Payload) AlertSummaryArgCount(key int) *Payload {
265265
// This is a string value that represents the identifier property of the
266266
// UIMutableUserNotificationCategory object you created to define custom actions.
267267
//
268-
// {"aps":{"alert":{"category":category}}}
268+
// {"aps":{"category":category}}
269269
func (p *Payload) Category(category string) *Payload {
270270
p.aps().Category = category
271271
return p

token/token_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ func TestGenerateWithNoAuthKey(t *testing.T) {
8686

8787
func TestGenerateWithInvalidAuthKey(t *testing.T) {
8888
pubkeyCurve := elliptic.P521()
89-
privatekey := &ecdsa.PrivateKey{}
9089
privatekey, err := ecdsa.GenerateKey(pubkeyCurve, rand.Reader)
9190

9291
token := &token.Token{

0 commit comments

Comments
 (0)