From 5f6781322be1870087c09df84bfa083cdc9e7215 Mon Sep 17 00:00:00 2001 From: derfenix Date: Tue, 28 Mar 2023 21:08:08 +0300 Subject: [PATCH] Cleanup --- entity/result.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/entity/result.go b/entity/result.go index b7a2e15..ae3d017 100644 --- a/entity/result.go +++ b/entity/result.go @@ -27,9 +27,7 @@ func (r *Results) UnmarshalMsgpack(b []byte) error { func (r *Results) Add(result Result) { r.mu.Lock() - results := r.results - results = append(results, result) - r.results = results + r.results = append(r.results, result) r.mu.Unlock() }