Skip to content

Commit

Permalink
fix lint issue (kubernetes#20406)
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha authored Feb 13, 2025
1 parent d216d43 commit e96c7d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/minikube/firewall/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ func IsBootpdBlocked(cc config.ClusterConfig) bool {
if err != nil {
// macOS < 15 or other issue: need to use --list.
klog.Warningf("failed to list firewall allowedsinged option: %v", err)
} else {
// macOS >= 15: bootpd may be allowed as builtin software.
if regexp.MustCompile(`Automatically allow built-in signed software ENABLED`).Match(out) {
return false
}
// macOS >= 15: bootpd may be allowed as builtin software
} else if regexp.MustCompile(`Automatically allow built-in signed software ENABLED`).Match(out) {
return false
}
out, err = exec.Command("/usr/libexec/ApplicationFirewall/socketfilterfw", "--listapps").Output()
if err != nil {
Expand Down

0 comments on commit e96c7d8

Please sign in to comment.