Skip to content

Commit

Permalink
style: Rename Var
Browse files Browse the repository at this point in the history
  • Loading branch information
jshlbrd committed Oct 10, 2024
1 parent b8ab60e commit 6de3238
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/secrets/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ var (
// interpRe is used for parsing secrets during interpolation. Secrets
// must not contain any curly braces.
interpRe = regexp.MustCompile(`\${(SECRET:[^}]+)}`)
// errNoSecrets is returned when no secrets are found in the cache.
errNoSecrets = fmt.Errorf("secrets: no secrets found")
// errNoSecret is returned when no secrets are found in the cache.
errNoSecret = fmt.Errorf("secrets: no secret found")
// KV store is used as a secrets cache
cache kv.Storer
)
Expand Down Expand Up @@ -75,7 +75,7 @@ func Interpolate(ctx context.Context, s string) (string, error) {
}

if secret == nil {
return "", errNoSecrets
return "", errNoSecret
}

// Replaces each substring with a secret. If the secret is
Expand Down

0 comments on commit 6de3238

Please sign in to comment.