Files
netbird/client/cmd
mlsmaycon 3e10f2cf6d [client] Cut cognitive complexity of the up request builders
The --allow-remote-jobs branch pushed setupSetConfigReq and
setupLoginRequest to cognitive complexity 26 (SonarCloud gate is 25).
Extract the repeated "if cmd.Flag(x).Changed { field = &val }" shape into
setBoolPtrIfChanged and use it for the remote-jobs flag in all three
request builders, dropping each flagged method back to 25. No behavior
change.
2026-08-13 18:59:53 +00:00
..