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:
parent
2496f8d41c
commit
03f19317df
2 changed files with 5 additions and 10 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue