Skip to content

Commit

Permalink
Resolve linter errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SBGoods committed Aug 20, 2024
1 parent a35ef44 commit bd53cf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ linters:
- unconvert
- unparam
- unused
- vet
- govet

run:
# Prevent false positive timeouts in CI
Expand Down
6 changes: 3 additions & 3 deletions helper/acctest/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func RandomWithPrefix(name string) string {
return fmt.Sprintf("%s-%d", name, RandInt())
}

// RandIntRange returns a random integer between min (inclusive) and max (exclusive)
func RandIntRange(min int, max int) int {
return rand.Intn(max-min) + min
// RandIntRange returns a random integer between minInt (inclusive) and maxInt (exclusive)
func RandIntRange(minInt int, maxInt int) int {
return rand.Intn(maxInt-minInt) + minInt
}

// RandString generates a random alphanumeric string of the length specified
Expand Down

0 comments on commit bd53cf8

Please sign in to comment.