Skip to content

Commit

Permalink
fix function redefinition linter warning (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn authored Apr 10, 2023
1 parent 5dd722b commit 36d5c05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quartz/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func fillRange(from, to int) ([]int, error) {
return nil, cronError("fillRange")
}

len := (to - from) + 1
arr := make([]int, len)
length := (to - from) + 1
arr := make([]int, length)

for i, j := from, 0; i <= to; i, j = i+1, j+1 {
arr[j] = i
Expand All @@ -55,8 +55,8 @@ func fillStep(from, step, max int) ([]int, error) {
return nil, cronError("fillStep")
}

len := ((max - from) / step) + 1
arr := make([]int, len)
length := ((max - from) / step) + 1
arr := make([]int, length)

for i, j := from, 0; i <= max; i, j = i+step, j+1 {
arr[j] = i
Expand Down

0 comments on commit 36d5c05

Please sign in to comment.