Skip to content

Commit

Permalink
add staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Jun 19, 2020
1 parent b10a87a commit 1c23000
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ jobs:

- name: Go vet
run: go vet ./...


- name: Staticcheck
run: |
go get -u honnef.co/go/tools/cmd/staticcheck
staticcheck ./...
- name: Send Coverage
uses: shogo82148/actions-goveralls@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion pkg/yang/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func semCheckMaxElements(v *Value) (uint64, error) {
return val, nil
}

// semCheckMaxElements checks whether the min-element argument is valid, and returns the specified value.
// semCheckMinElements checks whether the min-element argument is valid, and returns the specified value.
func semCheckMinElements(v *Value) (uint64, error) {
if v == nil {
return 0, nil
Expand Down

0 comments on commit 1c23000

Please sign in to comment.