Skip to content

Commit 34e3772

Browse files
authored
Merge pull request #13 from codeGROOVE-dev/fork
run gofumpt
2 parents 10a73f8 + 277abbd commit 34e3772

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

examples/delay_based_on_error_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ func TestCustomRetryFunctionBasedOnKindOfError(t *testing.T) {
6868
return e.retryAfter
6969
}
7070

71-
//default is backoffdelay
71+
// default is backoffdelay
7272
return retry.BackOffDelay(n, err, config)
7373
}),
7474
)
75-
7675
if err != nil {
7776
t.Fatalf("unexpected error: %v", err)
7877
}

examples/http_get_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ func TestGet(t *testing.T) {
3434
return err
3535
},
3636
)
37-
3837
if err != nil {
3938
t.Fatalf("unexpected error: %v", err)
4039
}

retry_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ func TestTimerInterface(t *testing.T) {
660660
MaxDelay(50*time.Millisecond),
661661
WithTimer(timer),
662662
)
663-
664663
if err != nil {
665664
t.Fatalf("unexpected error: %v", err)
666665
}
@@ -996,7 +995,6 @@ func TestConcurrentRetryUsage(t *testing.T) {
996995
Attempts(5),
997996
Delay(0), // No delay for speed
998997
)
999-
1000998
if err != nil {
1001999
t.Errorf("goroutine %d: unexpected error: %v", id, err)
10021000
}
@@ -1207,7 +1205,6 @@ func TestCustomTimerEdgeCases(t *testing.T) {
12071205
WithTimer(timer),
12081206
Attempts(5),
12091207
)
1210-
12111208
if err != nil {
12121209
t.Errorf("unexpected error: %v", err)
12131210
}

0 commit comments

Comments
 (0)