1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-10-14 06:00:16 +02:00

Fix linter

This commit is contained in:
binwiederhier 2023-11-16 21:04:49 -05:00
parent 22f48c5ad3
commit b65044712b
4 changed files with 3 additions and 12 deletions

View file

@ -69,7 +69,7 @@ func TestTopic_Subscribe_DuplicateID(t *testing.T) {
t.Parallel()
to := newTopic("mytopic")
// Fix random seed to force same number generation
//lint:ignore SA1019 Fix random seed to force same number generation
rand.Seed(1)
a := rand.Int()
to.subscribers[a] = &topicSubscriber{
@ -82,7 +82,7 @@ func TestTopic_Subscribe_DuplicateID(t *testing.T) {
return nil
}
// Force rand.Int to generate the same id once more
//lint:ignore SA1019 Force rand.Int to generate the same id once more
rand.Seed(1)
id := to.Subscribe(subFn, "b", func() {})
res := to.subscribers[id]