Skip to content
Snippets Groups Projects
Commit eb084739 authored by Philipp Heckel's avatar Philipp Heckel
Browse files

Fix staticcheck

parent 17eabed1
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment