Skip to content

Commit 80d62e8

Browse files
committed
fix(api): improve variable naming for clarity
- Rename variable 'license' to 'licenseType' for clarity Addresses code review feedback from PR #681
1 parent b0f1566 commit 80d62e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

descope/client/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ func NewWithConfig(config *Config) (*DescopeClient, error) {
9393
if config.ManagementKey != "" {
9494
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
9595
defer cancel()
96-
if license, err := mgmtClient.FetchLicense(ctx); err != nil {
96+
if licenseType, err := mgmtClient.FetchLicense(ctx); err != nil {
9797
logger.LogInfo("License handshake failed, continuing without header: %v", err)
9898
} else {
99-
mgmtClient.SetLicenseType(license)
99+
mgmtClient.SetLicenseType(licenseType)
100100
}
101101
}
102102

0 commit comments

Comments
 (0)