mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
chore(lint): enable evalOrder rule from go-critic (#23422)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
parent
7cc360e5af
commit
4731c61d7a
2 changed files with 4 additions and 3 deletions
|
|
@ -59,7 +59,6 @@ linters:
|
|||
- deferInLoop
|
||||
- exitAfterDefer
|
||||
- exposedSyncMutex
|
||||
- evalOrder
|
||||
- filepathJoin
|
||||
- hugeParam
|
||||
- importShadow
|
||||
|
|
|
|||
6
reposerver/cache/cache.go
vendored
6
reposerver/cache/cache.go
vendored
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue