Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/source/gitlab/cache/memstore.go')
-rw-r--r--internal/source/gitlab/cache/memstore.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/source/gitlab/cache/memstore.go b/internal/source/gitlab/cache/memstore.go
index f53f372f..8b22bde0 100644
--- a/internal/source/gitlab/cache/memstore.go
+++ b/internal/source/gitlab/cache/memstore.go
@@ -39,10 +39,7 @@ func (m *memstore) ReplaceOrCreate(domain string, entry *Entry) *Entry {
m.mux.Lock()
defer m.mux.Unlock()
- if _, exists := m.store.Get(domain); exists {
- m.store.Delete(domain)
- }
-
+ m.store.Delete(domain)
m.store.SetDefault(domain, entry)
return entry