File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func TestEventOrdering(t *testing.T) {
42
42
43
43
count := 8
44
44
dirs := make ([]string , count )
45
- for i , _ := range dirs {
45
+ for i := range dirs {
46
46
dir := f .TempDir ("watched" )
47
47
dirs [i ] = dir
48
48
f .watch (dir )
@@ -74,7 +74,7 @@ func TestGitBranchSwitch(t *testing.T) {
74
74
75
75
count := 10
76
76
dirs := make ([]string , count )
77
- for i , _ := range dirs {
77
+ for i := range dirs {
78
78
dir := f .TempDir ("watched" )
79
79
dirs [i ] = dir
80
80
f .watch (dir )
@@ -656,7 +656,7 @@ func (f *notifyFixture) fsyncWithRetryCount(retryCount int) {
656
656
anySyncPath := filepath .Join (f .paths [0 ], "sync-" )
657
657
timeout := time .After (250 * time .Millisecond )
658
658
659
- f .WriteFile (syncPath , fmt . Sprintf ( "%s" , time .Now ()))
659
+ f .WriteFile (syncPath , time .Now (). String ( ))
660
660
661
661
F:
662
662
for {
@@ -700,11 +700,11 @@ func (f *notifyFixture) closeWatcher() {
700
700
701
701
// drain channels from watcher
702
702
go func () {
703
- for _ = range notify .Events () {
703
+ for range notify .Events () {
704
704
}
705
705
}()
706
706
go func () {
707
- for _ = range notify .Errors () {
707
+ for range notify .Errors () {
708
708
}
709
709
}()
710
710
}
You can’t perform that action at this time.
0 commit comments