fix
This commit is contained in:
parent
333d6a8ea4
commit
6466ef523b
|
@ -50,7 +50,7 @@ class Repositories::DetailService < ApplicationService
|
||||||
|
|
||||||
def branch_slice_suitable
|
def branch_slice_suitable
|
||||||
branches = Gitea::Repository::Branches::ListSliceService.call(@owner, @repo.identifier)
|
branches = Gitea::Repository::Branches::ListSliceService.call(@owner, @repo.identifier)
|
||||||
branches.is_a?(Hash) && branches.key?(:status) == :error ? [] : branches
|
branches.is_a?(Hash) && branches.key?(:status) ? [] : branches
|
||||||
end
|
end
|
||||||
|
|
||||||
def tag_suitable
|
def tag_suitable
|
||||||
|
|
Loading…
Reference in New Issue