diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-06-21 11:25:34 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-06-21 11:42:08 -0300 |
commit | 7c85d6af96721e23bc36b23fc3576beaa06223e1 (patch) | |
tree | 579aea286eb6ffb6de634c6aa1c565dc3e1e8136 /lib | |
parent | 5947f7980303ba51004cfbe94943b7182a7af5a0 (diff) | |
download | gitlab-ce-7c85d6af96721e23bc36b23fc3576beaa06223e1.tar.gz |
Fix Github::Representation::PullRequest#source_branch_exists?
Diffstat (limited to 'lib')
-rw-r--r-- | lib/github/representation/pull_request.rb | 2 |
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 |