Files
moby/libnetwork/drivers
Sebastiaan van Stijn 63deb55263 libnetwork/drivers/bridge: bridgeEndpoint.UnmarshalJSON: fix unhandled errors (errchkjson)
Log errors, but continue, to keep the existing behavior, but add a TODO
to revisit the logic.

    libnetwork/drivers/bridge/bridge_store.go:316:10: Error return value of `encoding/json.Marshal` is not checked: unsafe type `interface{}` found (errchkjson)
        d, _ := json.Marshal(epMap["ContainerConfig"])
                ^
    libnetwork/drivers/bridge/bridge_store.go:320:9: Error return value of `encoding/json.Marshal` is not checked: unsafe type `interface{}` found (errchkjson)
        d, _ = json.Marshal(epMap["ExternalConnConfig"])
               ^
    libnetwork/drivers/bridge/bridge_store.go:324:9: Error return value of `encoding/json.Marshal` is not checked: unsafe type `interface{}` found (errchkjson)
        d, _ = json.Marshal(epMap["PortMapping"])
               ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-02-09 13:22:50 +01:00
..