Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <knqyf263@gmail.com>
  • Loading branch information
knqyf263 committed May 20, 2024
1 parent cf42f91 commit 38492db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fanal/image/registry/ecr/ecr.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func getSession(option types.RegistryOptions) (aws.Config, error) {
}

func (e *ECR) CheckOptions(domain string, option types.RegistryOptions) error {
if !strings.HasSuffix(domain, ecrURLSuffix) && !strings.Contains(domain, ecrURLPartial) {
if !strings.HasSuffix(domain, ecrURLSuffix) && !strings.Contains(domain, ecrURLPartial) {
return xerrors.Errorf("ECR : %w", types.InvalidURLPattern)
}

Expand Down

0 comments on commit 38492db

Please sign in to comment.