fix: detail result delay

This commit is contained in:
yystopf 2022-01-20 09:52:44 +08:00
parent 70d22f7c4f
commit b1884d30d5
1 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,14 @@ if @result[:repo]
json.empty @result[:repo]['empty']
json.full_name @result[:repo]['full_name']
json.private @result[:repo]['private']
else
json.size 0
json.ssh_url nil
json.clone_url nil
json.default_branch 'master'
json.empty nil
json.full_name nil
json.private !@project.is_public
end
json.license_name @project.license_name
json.branches_count @result[:branch_tag_total_count].present? ? (@result[:branch_tag_total_count]['branch_count'] || 0) : 0