From 97731a71fd70ee00378b77f11e0da60014d7aef1 Mon Sep 17 00:00:00 2001 From: Paschalis Tsilias Date: Fri, 9 Feb 2024 15:08:26 +0200 Subject: [PATCH] Fix lint error Signed-off-by: Paschalis Tsilias --- service/remotecfg/remotecfg.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/remotecfg/remotecfg.go b/service/remotecfg/remotecfg.go index f000862a565e..528a229f7e3e 100644 --- a/service/remotecfg/remotecfg.go +++ b/service/remotecfg/remotecfg.go @@ -281,7 +281,7 @@ func (s *Service) getCachedConfig() ([]byte, error) { return os.ReadFile(p) } -func (s *Service) setCachedConfig(b []byte) error { +func (s *Service) setCachedConfig(b []byte) { s.mut.RLock() p := s.dataPath s.mut.RUnlock() @@ -290,7 +290,6 @@ func (s *Service) setCachedConfig(b []byte) error { if err != nil { level.Error(s.opts.Logger).Log("msg", "failed to flush remote configuration contents the on-disk cache", "err", err) } - return nil } func (s *Service) parseAndLoad(b []byte) error {