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:25:34 -0300 |
commit | f702f1010c535f0375143c3ae5e20937e0e0a2c6 (patch) | |
tree | 09f7a79b33e35f410f68c364c74520e4aaffe3bd | |
parent | 1366e670276f735eb8d51b07edbc6fc76b197d60 (diff) | |
download | gitlab-ce-fix-33259.tar.gz |
Fix Github::Representation::PullRequest#source_branch_exists?fix-33259
-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 |