Remove redundant rescue from repository keep_around

This commit is contained in:
Grzegorz Bizon 2016-11-09 20:56:05 +01:00
parent fbc1364028
commit 6cbd3cafd3
1 changed files with 1 additions and 5 deletions

View File

@ -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