summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-06-21 11:25:34 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-06-21 11:42:08 -0300
commit7c85d6af96721e23bc36b23fc3576beaa06223e1 (patch)
tree579aea286eb6ffb6de634c6aa1c565dc3e1e8136
parent5947f7980303ba51004cfbe94943b7182a7af5a0 (diff)
downloadgitlab-ce-7c85d6af96721e23bc36b23fc3576beaa06223e1.tar.gz
Fix Github::Representation::PullRequest#source_branch_exists?
-rw-r--r--lib/github/representation/pull_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/github/representation/pull_request.rb b/lib/github/representation/pull_request.rb
index 61d5e9455d9..cbe3dd18e9d 100644
--- a/lib/github/representation/pull_request.rb
+++ b/lib/github/representation/pull_request.rb
@@ -18,7 +18,7 @@ module Github
end
def source_branch_exists?
- return if defined?(@source_branch_exists)
+ return @source_branch_exists if defined?(@source_branch_exists)
@source_branch_exists = !cross_project? && source_branch.exists?
end