Skip to content

Commit

Permalink
update golangci-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@redhat.com>
  • Loading branch information
jcaamano committed Jun 2, 2022
1 parent 6ad384b commit 9640378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.40.1
version: v1.46.2
skip-go-installation: true
skip-pkg-cache: true
skip-build-cache: true
Expand Down
4 changes: 1 addition & 3 deletions ovsdb/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ func (b *BaseType) UnmarshalJSON(data []byte) error {
oSet := bt.Enum.([]interface{})
innerSet := oSet[1].([]interface{})
b.Enum = make([]interface{}, len(innerSet))
for k, val := range innerSet {
b.Enum[k] = val
}
copy(b.Enum, innerSet)
default:
b.Enum = []interface{}{bt.Enum}
}
Expand Down

0 comments on commit 9640378

Please sign in to comment.