Files
ctrld/cmd/cli
Cuong Manh Le 016c566307 Fix tautological condition in findWorkingInterface
- Add explicit foundDefaultRoute boolean variable to track default route discovery
- Initialize foundDefaultRoute to false and set to true only in success case
- Replace tautological condition `err == nil` with meaningful `foundDefaultRoute` check
- Fixes "tautological condition: nil == nil" linter error

The error occurred because err was being reused from net.Interfaces() call,
making the condition always true. Now we explicitly track whether a default
route was successfully found.
2026-04-30 19:19:18 +07:00
..
2026-04-30 19:19:18 +07:00
2025-01-31 20:04:03 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2023-11-06 20:01:03 +07:00
2026-04-30 19:19:18 +07:00