diff options
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 |
