Skip to content

Commit

Permalink
💚 ci: add codeql action script, fix some comment words error
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jul 24, 2023
1 parent 0041602 commit 266cb62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
uses: WillAbides/setup-go-faster@v1.8.0
timeout-minutes: 3
with:
go-version: 1.19
go-version: 1.20

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -65,7 +65,7 @@ jobs:

# notifies that all test jobs are finished.
finish:
needs: [test, lint]
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
Expand Down
2 changes: 1 addition & 1 deletion messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
ErrInvalidData = errors.New("invalid input data")
)

// var emtpyErrors = Errors{}
// var emptyErrors = Errors{}

/*************************************************************
* Validate Errors
Expand Down
2 changes: 1 addition & 1 deletion validating.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (r *Rule) valueValidate(field, name string, val any, v *Validation) (ok boo
// dsCount := strings.Count(field, ".*")

// check requiredXX validate TODO need flatten multi level slice, count ".*" number.
// TIP: if len < cap: not enough elements in the slice. use emtpy val call validator.
// TIP: if len < cap: not enough elements in the slice. use empty val call validator.
if !r.nameNotRequired && sliceLen < rftVal.Cap() {
return callValidator(v, fm, field, nil, r.arguments)
}
Expand Down

0 comments on commit 266cb62

Please sign in to comment.