Skip to content

Commit

Permalink
FIX: lint issues in config migration
Browse files Browse the repository at this point in the history
  • Loading branch information
wozulong authored Jan 22, 2025
1 parent cf11f82 commit 4dbfce2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions db/migrate/20250110114305_embedding_config_data_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,7 @@ def model_attrs(model_name)
end

def persist_config(attrs)
provider_params_json = if attrs[:provider_params].present?
attrs[:provider_params].to_json
else
nil
end
provider_params_json = attrs[:provider_params].to_json if attrs[:provider_params].present?

DB.exec(
<<~SQL,
Expand Down

0 comments on commit 4dbfce2

Please sign in to comment.