Skip to content

Commit 5d2e9b6

Browse files
fix: simplify De Morgan's law lint error in options.go
Made-with: Cursor
1 parent 1b07ca6 commit 5d2e9b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/kube-rbac-proxy/app/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (o *ProxyRunOptions) Flags() k8sapiflag.NamedFlagSets {
149149
func (o *ProxyRunOptions) Validate() error {
150150
var errs []error
151151

152-
hasCerts := !(o.TLS.CertFile == "") && !(o.TLS.KeyFile == "")
152+
hasCerts := o.TLS.CertFile != "" && o.TLS.KeyFile != ""
153153
hasInsecureListenAddress := o.InsecureListenAddress != ""
154154
if !hasCerts || hasInsecureListenAddress {
155155
klog.Warning(`

0 commit comments

Comments
 (0)