Skip to content

Commit

Permalink
refactor: Follow proper indentation for better readability. (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
PruthiviRaj27 authored Dec 28, 2023
1 parent 8545eb3 commit 83e73d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fastlane/actions/modify_config_json_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def self.replace_fields_value(fields, data)
file = File.read(path)
config_json = JSON.parse(file)
app_config_json = JSON.parse(data)
config_json.each{|key, value| config_json[key] = app_config_json[key] if app_config_json.key?(key) && fields.include?(key)}
config_json.each do |key, value|
if app_config_json.key?(key) && fields.include?(key)
config_json[key] = app_config_json[key]
end
end
File.open(path,"w") do |f|
f.puts JSON.pretty_generate(config_json)
end
Expand Down

0 comments on commit 83e73d4

Please sign in to comment.