diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-20 13:21:34 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-20 13:21:34 +0200 |
| commit | 25d2143a627531fc0475d639c1e8f657ccafa630 (patch) | |
| tree | 3b5b69b64f5f6879810842464056543e315c64a4 /internal/discovery | |
| parent | b0e4e454fc94935cf8ee3282a07596ec53268a18 (diff) | |
Golang-ci-lint: Fixes
Diffstat (limited to 'internal/discovery')
| -rw-r--r-- | internal/discovery/discovery.go | 5 |
1 files changed, 1 insertions, 4 deletions
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 |
