fix superfluous-else from revive

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-05-15 11:04:18 +02:00
parent 369c8f828e
commit f0136d1dba
2 changed files with 4 additions and 2 deletions

View File

@@ -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:

View File

@@ -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)