Commit 9b7ef87
authored
Update lint_rego.go
Add type assertion and check for empty `"errors"` array returned from rule to prevent crashes when converting to `[]interface{}`1 parent d9db9b0 commit 9b7ef87
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments