Skip to content

Commit

Permalink
Remove caching for test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed Dec 20, 2024
1 parent 6b49cdb commit 3ada2fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/concerns/providable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ def git_repository_provider
end

def synth_provider
@synth_provider ||= begin
api_key = self_hosted? ? Setting.synth_api_key : ENV["SYNTH_API_KEY"]
api_key.present? ? Provider::Synth.new(api_key) : nil
end
api_key = self_hosted? ? Setting.synth_api_key : ENV["SYNTH_API_KEY"]
api_key.present? ? Provider::Synth.new(api_key) : nil
end

private
Expand Down

0 comments on commit 3ada2fd

Please sign in to comment.