Skip to content

Commit 3e16770

Browse files
committed
remove unnecessary newlines
Change-Id: I7bf843b42a0d8869e72b6d0606bdc99893b10bdb
1 parent b240c2d commit 3e16770

11 files changed

+0
-29
lines changed

github/activity_watching_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ func TestActivityService_ListWatched_specifiedUser(t *testing.T) {
7373
})
7474

7575
watched, _, err := client.Activity.ListWatched("u", &ListOptions{Page: 2})
76-
7776
if err != nil {
7877
t.Errorf("Activity.ListWatched returned error: %v", err)
7978
}

github/gists_comments_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func TestGistsService_ListComments(t *testing.T) {
2525

2626
opt := &ListOptions{Page: 2}
2727
comments, _, err := client.Gists.ListComments("1", opt)
28-
2928
if err != nil {
3029
t.Errorf("Gists.Comments returned error: %v", err)
3130
}
@@ -51,7 +50,6 @@ func TestGistsService_GetComment(t *testing.T) {
5150
})
5251

5352
comment, _, err := client.Gists.GetComment("1", 2)
54-
5553
if err != nil {
5654
t.Errorf("Gists.GetComment returned error: %v", err)
5755
}

github/gists_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ func TestGistsService_List_specifiedUser(t *testing.T) {
3030

3131
opt := &GistListOptions{Since: time.Date(2013, time.January, 1, 0, 0, 0, 0, time.UTC)}
3232
gists, _, err := client.Gists.List("u", opt)
33-
3433
if err != nil {
3534
t.Errorf("Gists.List returned error: %v", err)
3635
}
@@ -82,7 +81,6 @@ func TestGistsService_ListAll(t *testing.T) {
8281

8382
opt := &GistListOptions{Since: time.Date(2013, time.January, 1, 0, 0, 0, 0, time.UTC)}
8483
gists, _, err := client.Gists.ListAll(opt)
85-
8684
if err != nil {
8785
t.Errorf("Gists.ListAll returned error: %v", err)
8886
}
@@ -109,7 +107,6 @@ func TestGistsService_ListStarred(t *testing.T) {
109107

110108
opt := &GistListOptions{Since: time.Date(2013, time.January, 1, 0, 0, 0, 0, time.UTC)}
111109
gists, _, err := client.Gists.ListStarred(opt)
112-
113110
if err != nil {
114111
t.Errorf("Gists.ListStarred returned error: %v", err)
115112
}
@@ -130,7 +127,6 @@ func TestGistsService_Get(t *testing.T) {
130127
})
131128

132129
gist, _, err := client.Gists.Get("1")
133-
134130
if err != nil {
135131
t.Errorf("Gists.Get returned error: %v", err)
136132
}
@@ -156,7 +152,6 @@ func TestGistsService_GetRevision(t *testing.T) {
156152
})
157153

158154
gist, _, err := client.Gists.GetRevision("1", "s")
159-
160155
if err != nil {
161156
t.Errorf("Gists.Get returned error: %v", err)
162157
}
@@ -394,7 +389,6 @@ func TestGistsService_Fork(t *testing.T) {
394389
})
395390

396391
gist, _, err := client.Gists.Fork("1")
397-
398392
if err != nil {
399393
t.Errorf("Gists.Fork returned error: %v", err)
400394
}

github/git_tags_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func TestGitService_GetTag(t *testing.T) {
2525
})
2626

2727
tag, _, err := client.Git.GetTag("o", "r", "s")
28-
2928
if err != nil {
3029
t.Errorf("Git.GetTag returned error: %v", err)
3130
}

github/github_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ func TestDo_rateLimit(t *testing.T) {
397397

398398
req, _ := client.NewRequest("GET", "/", nil)
399399
_, err := client.Do(req, nil)
400-
401400
if err != nil {
402401
t.Errorf("Do returned unexpected error: %v", err)
403402
}
@@ -551,7 +550,6 @@ func TestDo_noContent(t *testing.T) {
551550

552551
req, _ := client.NewRequest("GET", "/", nil)
553552
_, err := client.Do(req, &body)
554-
555553
if err != nil {
556554
t.Fatalf("Do returned unexpected error: %v", err)
557555
}
@@ -630,7 +628,6 @@ func TestCheckResponse_noBody(t *testing.T) {
630628

631629
func TestParseBooleanResponse_true(t *testing.T) {
632630
result, err := parseBoolResponse(nil)
633-
634631
if err != nil {
635632
t.Errorf("parseBoolResponse returned error: %+v", err)
636633
}
@@ -643,7 +640,6 @@ func TestParseBooleanResponse_true(t *testing.T) {
643640
func TestParseBooleanResponse_false(t *testing.T) {
644641
v := &ErrorResponse{Response: &http.Response{StatusCode: http.StatusNotFound}}
645642
result, err := parseBoolResponse(v)
646-
647643
if err != nil {
648644
t.Errorf("parseBoolResponse returned error: %+v", err)
649645
}

github/issues_events_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ func TestIssuesService_ListIssueEvents(t *testing.T) {
2727

2828
opt := &ListOptions{Page: 1, PerPage: 2}
2929
events, _, err := client.Issues.ListIssueEvents("o", "r", 1, opt)
30-
3130
if err != nil {
3231
t.Errorf("Issues.ListIssueEvents returned error: %v", err)
3332
}
@@ -53,7 +52,6 @@ func TestIssuesService_ListRepositoryEvents(t *testing.T) {
5352

5453
opt := &ListOptions{Page: 1, PerPage: 2}
5554
events, _, err := client.Issues.ListRepositoryEvents("o", "r", opt)
56-
5755
if err != nil {
5856
t.Errorf("Issues.ListRepositoryEvents returned error: %v", err)
5957
}
@@ -74,7 +72,6 @@ func TestIssuesService_GetEvent(t *testing.T) {
7472
})
7573

7674
event, _, err := client.Issues.GetEvent("o", "r", 1)
77-
7875
if err != nil {
7976
t.Errorf("Issues.GetEvent returned error: %v", err)
8077
}

github/issues_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func TestIssuesService_List_all(t *testing.T) {
4040
ListOptions{Page: 1, PerPage: 2},
4141
}
4242
issues, _, err := client.Issues.List(true, opt)
43-
4443
if err != nil {
4544
t.Errorf("Issues.List returned error: %v", err)
4645
}

github/pulls.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ func (s *PullRequestsService) Merge(owner string, repo string, number int, commi
272272

273273
// TODO: This header will be unnecessary when the API is no longer in preview.
274274
req.Header.Set("Accept", mediaTypeSquashPreview)
275-
276275
if err != nil {
277276
return nil, nil, err
278277
}

github/pulls_comments_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ func TestPullRequestsService_ListComments_allPulls(t *testing.T) {
3737
ListOptions: ListOptions{Page: 2},
3838
}
3939
pulls, _, err := client.PullRequests.ListComments("o", "r", 0, opt)
40-
4140
if err != nil {
4241
t.Errorf("PullRequests.ListComments returned error: %v", err)
4342
}
@@ -59,7 +58,6 @@ func TestPullRequestsService_ListComments_specificPull(t *testing.T) {
5958
})
6059

6160
pulls, _, err := client.PullRequests.ListComments("o", "r", 1, nil)
62-
6361
if err != nil {
6462
t.Errorf("PullRequests.ListComments returned error: %v", err)
6563
}
@@ -86,7 +84,6 @@ func TestPullRequestsService_GetComment(t *testing.T) {
8684
})
8785

8886
comment, _, err := client.PullRequests.GetComment("o", "r", 1)
89-
9087
if err != nil {
9188
t.Errorf("PullRequests.GetComment returned error: %v", err)
9289
}
@@ -121,7 +118,6 @@ func TestPullRequestsService_CreateComment(t *testing.T) {
121118
})
122119

123120
comment, _, err := client.PullRequests.CreateComment("o", "r", 1, input)
124-
125121
if err != nil {
126122
t.Errorf("PullRequests.CreateComment returned error: %v", err)
127123
}
@@ -156,7 +152,6 @@ func TestPullRequestsService_EditComment(t *testing.T) {
156152
})
157153

158154
comment, _, err := client.PullRequests.EditComment("o", "r", 1, input)
159-
160155
if err != nil {
161156
t.Errorf("PullRequests.EditComment returned error: %v", err)
162157
}

github/pulls_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ func TestPullRequestsService_List(t *testing.T) {
3232

3333
opt := &PullRequestListOptions{"closed", "h", "b", "created", "desc", ListOptions{Page: 2}}
3434
pulls, _, err := client.PullRequests.List("o", "r", opt)
35-
3635
if err != nil {
3736
t.Errorf("PullRequests.List returned error: %v", err)
3837
}
@@ -58,7 +57,6 @@ func TestPullRequestsService_Get(t *testing.T) {
5857
})
5958

6059
pull, _, err := client.PullRequests.Get("o", "r", 1)
61-
6260
if err != nil {
6361
t.Errorf("PullRequests.Get returned error: %v", err)
6462
}
@@ -79,7 +77,6 @@ func TestPullRequestsService_Get_headAndBase(t *testing.T) {
7977
})
8078

8179
pull, _, err := client.PullRequests.Get("o", "r", 1)
82-
8380
if err != nil {
8481
t.Errorf("PullRequests.Get returned error: %v", err)
8582
}
@@ -112,7 +109,6 @@ func TestPullRequestService_Get_DiffURLAndPatchURL(t *testing.T) {
112109
})
113110

114111
pull, _, err := client.PullRequests.Get("o", "r", 1)
115-
116112
if err != nil {
117113
t.Errorf("PullRequests.Get returned error: %v", err)
118114
}

0 commit comments

Comments
 (0)