superfly / flyctl

Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func warnAboutIncorrectListenAddress has a cyclomatic complexity of 18 with "high" risk
 946	fmt.Fprint(md.io.Out, "\n")
 947}
 948
 949func (md *machineDeployment) warnAboutIncorrectListenAddress(ctx context.Context, lm machine.LeasableMachine) { 950	group := lm.Machine().ProcessGroup()
 951
 952	if _, seen := md.listenAddressChecked.LoadOrStore(group, struct{}{}); seen {