Skip to content

Commit

Permalink
bundle exec rubocop -a
Browse files Browse the repository at this point in the history
  • Loading branch information
JunyiXie committed Apr 26, 2020
1 parent 2679aef commit 73a54c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/xcodeproj/project/object/native_target.rb
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,9 @@ def add_resources(resource_file_references)
#
def remove_on_demand_resources(on_demand_resource_tag_files)
on_demand_resource_tag_files.each do |_, files|
files.each { |file|
files.each do |file|
resources_build_phase.remove_file_reference(file)
}
end
end
end

Expand All @@ -576,13 +576,13 @@ def remove_on_demand_resources(on_demand_resource_tag_files)
#
def add_on_demand_resources(on_demand_resource_tag_files)
on_demand_resource_tag_files.each do |tag_name, files|
files.each { |file|
files.each do |file|
next if resources_build_phase.include?(file)
build_file = project.new(PBXBuildFile)
build_file.file_ref = file
build_file.settings = (build_file.settings ||= {}).merge({"ASSET_TAGS" => [tag_name]})
build_file.settings = (build_file.settings ||= {}).merge('ASSET_TAGS' => [tag_name])
resources_build_phase.files << build_file
}
end
end
end

Expand Down

0 comments on commit 73a54c2

Please sign in to comment.