We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20265a4 commit 42dca02Copy full SHA for 42dca02
pkg/apis/deployment/v1alpha/license_spec.go
@@ -37,11 +37,7 @@ func (s LicenseSpec) HasSecretName() bool {
37
38
// GetSecretName returns the license key if set. Empty string otherwise.
39
func (s LicenseSpec) GetSecretName() string {
40
- if s.HasSecretName() {
41
- return *s.SecretName
42
- }
43
-
44
- return ""
+ return util.StringOrDefault(s.SecretName)
45
}
46
47
// Validate validates the LicenseSpec
0 commit comments