Skip to content

Commit ddf6b16

Browse files
committed
Replace += 1 with ++
1 parent fbfb33a commit ddf6b16

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

junit/junit.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,18 @@ func (t *Testsuite) AddProperty(name, value string) {
7474
// AddTestcase adds Testcase tc to this Testsuite.
7575
func (t *Testsuite) AddTestcase(tc Testcase) {
7676
t.Testcases = append(t.Testcases, tc)
77-
t.Tests += 1
77+
t.Tests++
7878

7979
if tc.Error != nil {
80-
t.Errors += 1
80+
t.Errors++
8181
}
8282

8383
if tc.Failure != nil {
84-
t.Failures += 1
84+
t.Failures++
8585
}
8686

8787
if tc.Skipped != nil {
88-
t.Skipped += 1
88+
t.Skipped++
8989
}
9090
}
9191

parser/gotest/report_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func newReportBuilder() *reportBuilder {
5353
func (b *reportBuilder) newID() int {
5454
id := b.nextID
5555
b.lastID = id
56-
b.nextID += 1
56+
b.nextID++
5757
return id
5858
}
5959

0 commit comments

Comments
 (0)