mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
fix superfluous-else from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -210,6 +210,9 @@ linters:
|
||||
# FIXME make sure all packages have a description. Currently, there's many packages without.
|
||||
- name: package-comments
|
||||
disabled: true
|
||||
- name: superfluous-else
|
||||
arguments:
|
||||
- preserve-scope
|
||||
- name: var-declaration
|
||||
|
||||
staticcheck:
|
||||
|
||||
@@ -52,9 +52,8 @@ func Load(ctx context.Context, t *testing.T, apiClient client.APIClient, imageFu
|
||||
err := decoder.Decode(&msg)
|
||||
if errors.Is(err, io.EOF) {
|
||||
break
|
||||
} else {
|
||||
assert.NilError(t, err)
|
||||
}
|
||||
assert.NilError(t, err)
|
||||
|
||||
msg.Stream = strings.TrimSpace(msg.Stream)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user