Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 4dbfce2

Browse files
authored
FIX: lint issues in config migration
1 parent cf11f82 commit 4dbfce2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

db/migrate/20250110114305_embedding_config_data_migration.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,7 @@ def model_attrs(model_name)
171171
end
172172

173173
def persist_config(attrs)
174-
provider_params_json = if attrs[:provider_params].present?
175-
attrs[:provider_params].to_json
176-
else
177-
nil
178-
end
174+
provider_params_json = attrs[:provider_params].to_json if attrs[:provider_params].present?
179175

180176
DB.exec(
181177
<<~SQL,

0 commit comments

Comments
 (0)