1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-16 18:01:34 +00:00

chore(cleanup): use any, NoError and keep switch cases DRY

This commit is contained in:
Earl Warren 2025-08-10 15:01:39 +02:00
parent 2496f8d41c
commit 03f19317df
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 5 additions and 10 deletions

View file

@ -293,7 +293,7 @@ func TestMapContains(t *testing.T) {
}
output, err := NewInterpeter(env, Config{}).Evaluate("contains(needs.*.result, 'failure')", DefaultStatusCheckNone)
assert.Nil(t, err)
assert.NoError(t, err)
assert.Equal(t, true, output)
}