Skip to content

Commit

Permalink
Update pr-flow.yml (#326)
Browse files Browse the repository at this point in the history
* Update pr-flow.yml

* wip
  • Loading branch information
leonardinius authored May 6, 2024
1 parent 024437b commit eb128bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pr-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
go-version-file: 'go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@v5
with:
skip-pkg-cache: true
test:
name: run tests
runs-on: ubuntu-latest
Expand Down
6 changes: 4 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ linters-settings:
sloglint:
no-mixed-args: true
kv-only: true
context-only: true
context: all
static-msg: true
# Enforce a single key naming convention. Values: snake, kebab, camel, pascal. Default: ""
key-naming-case: snake
Expand All @@ -37,8 +37,10 @@ linters:
- gochecknoglobals
- gochecknoinits
- goconst
- goerr113
- err113
- gomnd
- mnd
- execinquery
- ireturn
- nlreturn
- nonamedreturns
Expand Down
4 changes: 2 additions & 2 deletions app/upstream/upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func newRandIntStruc() *randIntStruc {
}

func (s *randIntStruc) Intn(n int) int {
max := big.NewInt(int64(n))
val, err := rand.Int(rand.Reader, max)
maxN := big.NewInt(int64(n))
val, err := rand.Int(rand.Reader, maxN)
if err != nil {
panic(err) // out of randomness, should never happen.
}
Expand Down

0 comments on commit eb128bb

Please sign in to comment.