summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-09 20:56:05 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-09 20:56:05 +0100
commit6cbd3cafd3c3e7e318f84483460ba5c6af3fc4cf (patch)
treee67e072228603783fee2032edfad87102a39bf2c
parentfbc1364028e7d145db4bb0c99868f029dee8979a (diff)
downloadgitlab-ce-fix/error-when-invalid-branch-for-new-pipeline-used.tar.gz
Remove redundant rescue from repository keep_aroundfix/error-when-invalid-branch-for-new-pipeline-used
-rw-r--r--app/models/repository.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 86aeb86880b..f11e0b34a9d 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -274,11 +274,7 @@ class Repository
end
def kept_around?(sha)
- begin
- ref_exists?(keep_around_ref_name(sha))
- rescue Rugged::ReferenceError
- false
- end
+ ref_exists?(keep_around_ref_name(sha))
end
def tag_names