mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix mapKey from go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -131,7 +131,6 @@ linters:
|
|||||||
- importShadow
|
- importShadow
|
||||||
- indexAlloc
|
- indexAlloc
|
||||||
- initClause
|
- initClause
|
||||||
- mapKey
|
|
||||||
- methodExprCall
|
- methodExprCall
|
||||||
- nestingReduce
|
- nestingReduce
|
||||||
- nilValReturn
|
- nilValReturn
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ func TestParseDockerDaemonHost(t *testing.T) {
|
|||||||
"udp://127.0.0.1": "invalid bind address (udp://127.0.0.1): unsupported proto 'udp'",
|
"udp://127.0.0.1": "invalid bind address (udp://127.0.0.1): unsupported proto 'udp'",
|
||||||
"udp://127.0.0.1:5555": "invalid bind address (udp://127.0.0.1:5555): unsupported proto 'udp'",
|
"udp://127.0.0.1:5555": "invalid bind address (udp://127.0.0.1:5555): unsupported proto 'udp'",
|
||||||
"tcp://unix:///run/docker.sock": "invalid bind address (tcp://unix:///run/docker.sock): should not contain a path element",
|
"tcp://unix:///run/docker.sock": "invalid bind address (tcp://unix:///run/docker.sock): should not contain a path element",
|
||||||
" tcp://:5555/path ": "invalid bind address ( tcp://:5555/path ): unsupported proto ' tcp'",
|
" tcp://:5555/path ": "invalid bind address ( tcp://:5555/path ): unsupported proto ' tcp'", //nolint:gocritic // This is a valid test case.
|
||||||
"": "invalid bind address (): unsupported proto ''",
|
"": "invalid bind address (): unsupported proto ''",
|
||||||
":5555/path": "invalid bind address (:5555/path): should not contain a path element",
|
":5555/path": "invalid bind address (:5555/path): should not contain a path element",
|
||||||
"0.0.0.1:5555/path": "invalid bind address (0.0.0.1:5555/path): should not contain a path element",
|
"0.0.0.1:5555/path": "invalid bind address (0.0.0.1:5555/path): should not contain a path element",
|
||||||
|
|||||||
Reference in New Issue
Block a user