mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-28 20:52:30 +01:00
Fix staticcheck
This commit is contained in:
parent
17eabed11c
commit
eb0847392c
1 changed files with 1 additions and 5 deletions
|
@ -53,11 +53,7 @@ func (s *testFirebaseSender) Send(m *messaging.Message) error {
|
||||||
func (s *testFirebaseSender) Messages() []*messaging.Message {
|
func (s *testFirebaseSender) Messages() []*messaging.Message {
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
defer s.mu.Unlock()
|
defer s.mu.Unlock()
|
||||||
messages := make([]*messaging.Message, 0)
|
return append(make([]*messaging.Message, 0), s.messages...)
|
||||||
for _, m := range s.messages {
|
|
||||||
messages = append(messages, m)
|
|
||||||
}
|
|
||||||
return messages
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestToFirebaseMessage_Keepalive(t *testing.T) {
|
func TestToFirebaseMessage_Keepalive(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue