From 43a1f2c29abb55950018044f1ec957401ba53a96 Mon Sep 17 00:00:00 2001 From: nmalhotra Date: Sat, 6 Jul 2019 21:53:02 -0400 Subject: [PATCH] Fix lint issues --- models/db.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/db.go b/models/db.go index 9d009dd..8c77610 100644 --- a/models/db.go +++ b/models/db.go @@ -56,7 +56,8 @@ func (r Redis) Add(attack AttackDetails) error { } func (r Redis) GetAll(filterParams FilterParams) []AttackDetails { - var attacks []AttackDetails + attacks := make([]AttackDetails, 0) + filters := createFilterChain(filterParams) conn := r.connFn() defer conn.Close()