chore(lint): enable evalOrder rule from go-critic (#23422)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL 2025-06-16 20:04:05 +02:00 committed by GitHub
parent 7cc360e5af
commit 4731c61d7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -59,7 +59,6 @@ linters:
- deferInLoop
- exitAfterDefer
- exposedSyncMutex
- evalOrder
- filepathJoin
- hugeParam
- importShadow

View file

@ -496,7 +496,8 @@ func (c *Cache) SetGitFiles(repoURL, revision, pattern string, files map[string]
func (c *Cache) GetGitFiles(repoURL, revision, pattern string) (map[string][]byte, error) {
var item map[string][]byte
return item, c.cache.GetItem(gitFilesKey(repoURL, revision, pattern), &item)
err := c.cache.GetItem(gitFilesKey(repoURL, revision, pattern), &item)
return item, err
}
func gitDirectoriesKey(repoURL, revision string) string {
@ -512,7 +513,8 @@ func (c *Cache) SetGitDirectories(repoURL, revision string, directories []string
func (c *Cache) GetGitDirectories(repoURL, revision string) ([]string, error) {
var item []string
return item, c.cache.GetItem(gitDirectoriesKey(repoURL, revision), &item)
err := c.cache.GetItem(gitDirectoriesKey(repoURL, revision), &item)
return item, err
}
func (cmr *CachedManifestResponse) shallowCopy() *CachedManifestResponse {