Skip to content

Commit 380e268

Browse files
Raul MarreroRulox
Raul Marrero
authored andcommitted
Format code
1 parent a961158 commit 380e268

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Diff for: cmd/sync/parameters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ func getSlowStartOrDefault(slowStart string) string {
1717
}
1818

1919
return slowStart
20-
}
20+
}

Diff for: cmd/sync/parameters_test.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ import (
55
)
66

77
func TestGetFailTimeoutOrDefault(t *testing.T) {
8-
tests := []struct{
9-
input string
8+
tests := []struct {
9+
input string
1010
expected string
1111
}{
1212
{
13-
input: "",
13+
input: "",
1414
expected: defaultFailTimeout,
1515
},
1616
{
17-
input: "10s",
17+
input: "10s",
1818
expected: "10s",
1919
},
2020
}
@@ -28,16 +28,16 @@ func TestGetFailTimeoutOrDefault(t *testing.T) {
2828
}
2929

3030
func TestGetSlowStartOrDefault(t *testing.T) {
31-
tests := []struct{
32-
input string
31+
tests := []struct {
32+
input string
3333
expected string
3434
}{
3535
{
36-
input: "",
36+
input: "",
3737
expected: defaultSlowStart,
3838
},
3939
{
40-
input: "10s",
40+
input: "10s",
4141
expected: "10s",
4242
},
4343
}
@@ -48,4 +48,4 @@ func TestGetSlowStartOrDefault(t *testing.T) {
4848
t.Errorf("getSlowStartOrDefault(%v) returned %v but expected %v", test.input, result, test.expected)
4949
}
5050
}
51-
}
51+
}

0 commit comments

Comments
 (0)