Fix lint issues (#755)

Lint fixes in preparation of
https://github.com/pulumi/ci-mgmt/pull/2024.
This commit is contained in:
Bryce Lampe
2026-02-06 14:08:57 -08:00
committed by GitHub
parent e9f6bbf15d
commit 5b05d733ea
8 changed files with 38 additions and 32 deletions

View File

@@ -448,7 +448,7 @@ func (c CacheFrom) String() string {
return join(c.Local, c.Registry, c.GHA, c.AZBlob, c.S3, c.Raw)
}
func (c CacheFrom) validate(preview bool) (*controllerapi.CacheOptionsEntry, error) {
func (c CacheFrom) validate(_ bool) (*controllerapi.CacheOptionsEntry, error) {
if strings.Count(c.String(), "type=") > 1 {
return nil, errors.New("cacheFrom should only specify one cache type")
}
@@ -672,7 +672,7 @@ func (c CacheTo) String() string {
return join(c.Inline, c.Local, c.Registry, c.GHA, c.AZBlob, c.S3, c.Raw)
}
func (c CacheTo) validate(preview bool) (*controllerapi.CacheOptionsEntry, error) {
func (c CacheTo) validate(_ bool) (*controllerapi.CacheOptionsEntry, error) {
if strings.Count(c.String(), "type=") > 1 {
return nil, errors.New("cacheTo should only specify one cache type")
}