1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/registry
Iskander (Alex) Sharipov a5c185b994 registry: use len(via)!=0 instead of via!=nil
This avoids the corner case where `via` is not nil, but has a length of 0,
so the updated code does not panic in that situation.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2018-12-11 16:37:16 +03:00
..
resumable Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
auth.go
auth_test.go
config.go
config_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
config_unix.go
config_windows.go
endpoint_test.go
endpoint_v1.go
errors.go
registry.go registry: use len(via)!=0 instead of via!=nil 2018-12-11 16:37:16 +03:00
registry_mock_test.go
registry_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
service.go
service_v1.go
service_v1_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
service_v2.go Format code with gofmt -s from go-1.11beta1 2018-09-06 15:24:16 -07:00
session.go
types.go