Skip to content

Commit

Permalink
Fix lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlynch committed Jun 19, 2019
1 parent a2eaf3f commit ba35953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/pullrequest-init/fake_github.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (g *FakeGitHub) updateComment(w http.ResponseWriter, r *http.Request) {

existing, ok := g.comments[key]
if !ok {
http.Error(w, err.Error(), http.StatusNotFound)
http.Error(w, fmt.Sprintf("comment %+v not found", key), http.StatusNotFound)
return
}

Expand All @@ -191,7 +191,7 @@ func (g *FakeGitHub) deleteComment(w http.ResponseWriter, r *http.Request) {
// Remove comment from PR storage. Not particularly efficient, but we don't
// generally expect this to be used for large number of comments in unit
// tests.
for k, _ := range g.prComments {
for k := range g.prComments {
for i, c := range g.prComments[k] {
if c.GetID() == key.id {
g.prComments[k] = append(g.prComments[k][:i], g.prComments[k][i+1:]...)
Expand Down

0 comments on commit ba35953

Please sign in to comment.