From 25d2143a627531fc0475d639c1e8f657ccafa630 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 20 Sep 2022 13:21:34 +0200 Subject: Golang-ci-lint: Fixes --- internal/discovery/discovery.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'internal/discovery') diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go index b3b438c..61b5557 100644 --- a/internal/discovery/discovery.go +++ b/internal/discovery/discovery.go @@ -156,10 +156,7 @@ func (discovery *Discovery) DetermineServersUpdate() bool { // 1 hour from the last update should_update_time := discovery.Servers.Timestamp.Add(1 * time.Hour) now := util.GetCurrentTime() - if !now.Before(should_update_time) { - return true - } - return false + return !now.Before(should_update_time) } // Get the organization list -- cgit v1.2.3