From 8bdda04fde5c1169b1109dcdcd82ccffcce53547 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 29 May 2024 17:05:02 +0200 Subject: [PATCH] Update internal/cli/configuration/build_cache.go Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com> --- internal/cli/configuration/build_cache.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/cli/configuration/build_cache.go b/internal/cli/configuration/build_cache.go index 29628fd155f..f7ea225d54c 100644 --- a/internal/cli/configuration/build_cache.go +++ b/internal/cli/configuration/build_cache.go @@ -49,9 +49,8 @@ func (s *Settings) GetBuildCachePath() (*paths.Path, bool) { // GetBuildCacheExtraPaths returns the extra paths to the build cache. // Those paths are visited to look for precompiled items if not found elsewhere. func (s *Settings) GetBuildCacheExtraPaths() paths.PathList { - var res paths.PathList if p, ok, _ := s.GetStringSliceOk("build_cache.extra_paths"); ok { return paths.NewPathList(p...) } - return res + return nil }