diff --git a/internal/db/db.go b/internal/db/db.go index c32c3c0..41cd1ee 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -96,7 +96,7 @@ func (db *DB) Query(ctx context.Context, statement string, return err } - var rows []interface{} + rows := []interface{}{} for results.Next() { var row interface{} err := results.Row(&row) diff --git a/internal/user/service.go b/internal/user/service.go index aea58d2..3d44965 100644 --- a/internal/user/service.go +++ b/internal/user/service.go @@ -268,9 +268,6 @@ func (s service) Activities(ctx context.Context, id string, offset, limit int) ( if err != nil { return nil, err } - // if len(result) == 0 { - // return make([]interface{}, 0), nil - // } return result, nil }