diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-09 20:56:05 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-09 20:56:05 +0100 |
commit | 6cbd3cafd3c3e7e318f84483460ba5c6af3fc4cf (patch) | |
tree | e67e072228603783fee2032edfad87102a39bf2c | |
parent | fbc1364028e7d145db4bb0c99868f029dee8979a (diff) | |
download | gitlab-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.rb | 6 |
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 |