Skip to content

Commit

Permalink
github_pr formatter: don't reduce position by one
Browse files Browse the repository at this point in the history
  • Loading branch information
mmozuras committed Sep 26, 2014
1 parent 215530c commit d729fc1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/pronto/formatter/github_pull_request_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def format(messages, repo)
line
end

position = line.position - 1

comment = Github::Comment.new(github_slug, sha, body, path, position)
comment = Github::Comment.new(github_slug, sha, body, path, line.position)
create_comment(github_slug, sha, comment)
end

Expand Down

0 comments on commit d729fc1

Please sign in to comment.