We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e87522 commit 43a1f2cCopy full SHA for 43a1f2c
models/db.go
@@ -56,7 +56,8 @@ func (r Redis) Add(attack AttackDetails) error {
56
}
57
58
func (r Redis) GetAll(filterParams FilterParams) []AttackDetails {
59
- var attacks []AttackDetails
+ attacks := make([]AttackDetails, 0)
60
+
61
filters := createFilterChain(filterParams)
62
conn := r.connFn()
63
defer conn.Close()
0 commit comments