This commit is contained in:
yystopf 2021-09-15 11:47:16 +08:00
parent 333d6a8ea4
commit 6466ef523b
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class Repositories::DetailService < ApplicationService
def branch_slice_suitable
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
def tag_suitable