Fix staticcheck

pull/304/head
Philipp Heckel 2022-06-01 09:05:21 -04:00
parent 17eabed11c
commit eb0847392c
1 changed files with 1 additions and 5 deletions

View File

@ -53,11 +53,7 @@ func (s *testFirebaseSender) Send(m *messaging.Message) error {
func (s *testFirebaseSender) Messages() []*messaging.Message {
s.mu.Lock()
defer s.mu.Unlock()
messages := make([]*messaging.Message, 0)
for _, m := range s.messages {
messages = append(messages, m)
}
return messages
return append(make([]*messaging.Message, 0), s.messages...)
}
func TestToFirebaseMessage_Keepalive(t *testing.T) {