Skip to content

Commit

Permalink
fix: reduce clear length
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez authored Dec 20, 2023
1 parent 9eb3c0e commit 89868c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ func NormalizeConfig(cfg *Config, cfgMetadata config_loader.YAMLMetadata) (err e

cfg.License = strings.TrimSpace(cfg.License)
if !license.IsValid(cfg.License) {
const preservedLength = 10
const preservedLength = 4
obfuscatedL := cfg.License[:preservedLength] + strings.Repeat("*", len(cfg.License)-preservedLength)
err = fmt.Errorf("%w: %s", ErrInvalidLicense, obfuscatedL)
return
Expand Down

0 comments on commit 89868c7

Please # to comment.