summaryrefslogtreecommitdiff
path: root/internal/discovery
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-20 13:21:34 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-20 13:21:34 +0200
commit25d2143a627531fc0475d639c1e8f657ccafa630 (patch)
tree3b5b69b64f5f6879810842464056543e315c64a4 /internal/discovery
parentb0e4e454fc94935cf8ee3282a07596ec53268a18 (diff)
Golang-ci-lint: Fixes
Diffstat (limited to 'internal/discovery')
-rw-r--r--internal/discovery/discovery.go5
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