Skip to content

Commit

Permalink
fix lintin errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Nov 30, 2023
1 parent b778041 commit a0f9ff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/uptime-tracker/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/uptime-tracker/store/memory_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
}

0 comments on commit a0f9ff2

Please sign in to comment.