Browse Source

fix

tags/v3.2.0
yystopf 4 years ago
parent
commit
6466ef523b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/repositories/detail_service.rb

+ 1
- 1
app/services/repositories/detail_service.rb 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


Loading…
Cancel
Save