Remove redundant rescue from repository keep_around
This commit is contained in:
parent
fbc1364028
commit
6cbd3cafd3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue