diff options
author | Valery Sizov <valery@gitlab.com> | 2016-12-06 13:46:59 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-12-06 13:46:59 +0200 |
commit | 84f2c219aa33de4890c7681372dd03309f216795 (patch) | |
tree | df93b86cadfe74f55120f02fd2a91b57deace829 /lib/bitbucket | |
parent | 54221b5a3b9a2489f979944c77298c4adf004984 (diff) | |
download | gitlab-ce-84f2c219aa33de4890c7681372dd03309f216795.tar.gz |
Fix importing inline comment for any diff type
Diffstat (limited to 'lib/bitbucket')
-rw-r--r-- | lib/bitbucket/representation/pull_request_comment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket/representation/pull_request_comment.rb b/lib/bitbucket/representation/pull_request_comment.rb index 38090188919..c63d749cba7 100644 --- a/lib/bitbucket/representation/pull_request_comment.rb +++ b/lib/bitbucket/representation/pull_request_comment.rb @@ -10,11 +10,11 @@ module Bitbucket end def old_pos - inline.fetch('from', nil) || 1 + inline.fetch('from', nil) end def new_pos - inline.fetch('to', nil) || old_pos || 1 + inline.fetch('to', nil) end def parent_id |