Skip to content

Commit 43a1f2c

Browse files
author
nmalhotra
committed
Fix lint issues
1 parent 1e87522 commit 43a1f2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/db.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ func (r Redis) Add(attack AttackDetails) error {
5656
}
5757

5858
func (r Redis) GetAll(filterParams FilterParams) []AttackDetails {
59-
var attacks []AttackDetails
59+
attacks := make([]AttackDetails, 0)
60+
6061
filters := createFilterChain(filterParams)
6162
conn := r.connFn()
6263
defer conn.Close()

0 commit comments

Comments
 (0)