Skip to content

Commit

Permalink
Set the validation error when err == nil too (#2575)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielseibel1 authored Sep 14, 2023
1 parent 900949d commit ad551a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func ValidateLicense() (err error) {
defer func() {
if err != nil {
err = fmt.Errorf("%w: %s", errValidation, err.Error())
servercfg.ErrLicenseValidation = err
}
servercfg.ErrLicenseValidation = err
}()

licenseKeyValue := servercfg.GetLicenseKey()
Expand Down

0 comments on commit ad551a0

Please sign in to comment.