Skip to content

Commit

Permalink
Add check for repository presence in sync_issues method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jan 17, 2024
1 parent d202acb commit 392cde0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def issues_api_url
end

def sync_issues
return unless repository.present?
conn = Faraday.new(url: issues_api_url) do |faraday|
faraday.response :follow_redirects
faraday.adapter Faraday.default_adapter
Expand Down

0 comments on commit 392cde0

Please sign in to comment.