1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

fix: fix some static check issues

This commit is contained in:
dudaodong
2022-10-15 15:03:24 +08:00
parent fcfbdea597
commit 96a4327aa7
3 changed files with 13 additions and 57 deletions

View File

@@ -1,7 +1,6 @@
package function
import (
"fmt"
"testing"
"github.com/duke-git/lancet/v2/internal"
@@ -30,10 +29,10 @@ func TestWatcher(t *testing.T) {
assert.Equal(int64(0), w.stopTime)
}
func longRunningTask() {
var slice []int64
func longRunningTask() []int64 {
var data []int64
for i := 0; i < 10000000; i++ {
slice = append(slice, int64(i))
data = append(data, int64(i))
}
fmt.Println(slice)
return data
}