Skip to content

Commit 66f7b89

Browse files
Merge pull request #111372 from HeavenTonight/master
code cleanup Kubernetes-commit: 7529178924a997708fa1ad93b32d00326cc27fb0
2 parents 8fccf3d + 3e07d25 commit 66f7b89

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/util/errors/errors_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func TestAggregateWithNil(t *testing.T) {
9393
}
9494

9595
func TestSingularAggregate(t *testing.T) {
96-
var slice []error = []error{fmt.Errorf("err")}
96+
var slice = []error{fmt.Errorf("err")}
9797
var agg Aggregate
9898
var err error
9999

@@ -121,7 +121,7 @@ func TestSingularAggregate(t *testing.T) {
121121
}
122122

123123
func TestPluralAggregate(t *testing.T) {
124-
var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("123")}
124+
var slice = []error{fmt.Errorf("abc"), fmt.Errorf("123")}
125125
var agg Aggregate
126126
var err error
127127

@@ -149,7 +149,7 @@ func TestPluralAggregate(t *testing.T) {
149149
}
150150

151151
func TestDedupeAggregate(t *testing.T) {
152-
var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("abc")}
152+
var slice = []error{fmt.Errorf("abc"), fmt.Errorf("abc")}
153153
var agg Aggregate
154154

155155
agg = NewAggregate(slice)
@@ -165,7 +165,7 @@ func TestDedupeAggregate(t *testing.T) {
165165
}
166166

167167
func TestDedupePluralAggregate(t *testing.T) {
168-
var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), fmt.Errorf("123")}
168+
var slice = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), fmt.Errorf("123")}
169169
var agg Aggregate
170170

171171
agg = NewAggregate(slice)
@@ -181,7 +181,7 @@ func TestDedupePluralAggregate(t *testing.T) {
181181
}
182182

183183
func TestFlattenAndDedupeAggregate(t *testing.T) {
184-
var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), NewAggregate([]error{fmt.Errorf("abc")})}
184+
var slice = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), NewAggregate([]error{fmt.Errorf("abc")})}
185185
var agg Aggregate
186186

187187
agg = NewAggregate(slice)
@@ -197,7 +197,7 @@ func TestFlattenAndDedupeAggregate(t *testing.T) {
197197
}
198198

199199
func TestFlattenAggregate(t *testing.T) {
200-
var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), NewAggregate([]error{fmt.Errorf("abc"), fmt.Errorf("def"), NewAggregate([]error{fmt.Errorf("def"), fmt.Errorf("ghi")})})}
200+
var slice = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), NewAggregate([]error{fmt.Errorf("abc"), fmt.Errorf("def"), NewAggregate([]error{fmt.Errorf("def"), fmt.Errorf("ghi")})})}
201201
var agg Aggregate
202202

203203
agg = NewAggregate(slice)

0 commit comments

Comments
 (0)