Merge pull request #52916 from tao12345666333/clean-up-dead-code

libnetwork/drivers/bridge: configureIPForwarding: fix dropped error message
This commit is contained in:
Sebastiaan van Stijn
2026-06-22 11:38:06 +02:00
committed by GitHub

View File

@@ -121,7 +121,7 @@ func setupIPv6Forwarding(ffd filterForwardDropper, wantFilterForwardDrop bool) (
func configureIPForwarding(file string, val byte) (changed bool, _ error) {
data, err := os.ReadFile(file)
if err != nil || len(data) == 0 {
if err != nil {
return false, fmt.Errorf("cannot read IP forwarding setup from '%s': %w", file, err)
}
if len(data) == 0 {