From a0f9ff2de0646ce97f1e058d9c5c2b982b9aa3ce Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Thu, 30 Nov 2023 18:07:33 +0000 Subject: [PATCH] fix lintin errors --- pkg/uptime-tracker/api/api.go | 2 +- pkg/uptime-tracker/store/memory_store.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/uptime-tracker/api/api.go b/pkg/uptime-tracker/api/api.go index ebd2cb0..f48af77 100644 --- a/pkg/uptime-tracker/api/api.go +++ b/pkg/uptime-tracker/api/api.go @@ -347,7 +347,7 @@ func (api *API) handleVisors(w http.ResponseWriter, r *http.Request) { } } -func sendGone(w http.ResponseWriter, r *http.Request) { +func sendGone(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusGone) } diff --git a/pkg/uptime-tracker/store/memory_store.go b/pkg/uptime-tracker/store/memory_store.go index 28a86a7..e0430d3 100644 --- a/pkg/uptime-tracker/store/memory_store.go +++ b/pkg/uptime-tracker/store/memory_store.go @@ -26,7 +26,7 @@ func NewMemoryStore() Store { } } -func (s *memStore) UpdateUptime(pk, ip, version string) error { +func (s *memStore) UpdateUptime(pk, ip, _ string) error { s.mu.Lock() defer s.mu.Unlock() @@ -249,6 +249,6 @@ func (s *memStore) GetOldestEntry() (DailyUptimeHistory, error) { return DailyUptimeHistory{}, nil } -func (s *memStore) GetSpecificDayData(time time.Time) ([]DailyUptimeHistory, error) { +func (s *memStore) GetSpecificDayData(_ time.Time) ([]DailyUptimeHistory, error) { return []DailyUptimeHistory{}, nil }