Commit 56c623d0 authored by Tim Bodeit's avatar Tim Bodeit

[Project] Use ||= for dictionary assignment

parent 3c0d7875
...@@ -312,7 +312,7 @@ module Pod ...@@ -312,7 +312,7 @@ module Pod
lproj_parent_dir = absolute_pathname.dirname.dirname lproj_parent_dir = absolute_pathname.dirname.dirname
group = @variant_groups_by_path_and_name[[lproj_parent_dir, filename]] || group = @variant_groups_by_path_and_name[[lproj_parent_dir, filename]] ||
group.new_variant_group(filename, lproj_parent_dir) group.new_variant_group(filename, lproj_parent_dir)
@variant_groups_by_path_and_name[[lproj_parent_dir, filename]] = group @variant_groups_by_path_and_name[[lproj_parent_dir, filename]] ||= group
end end
group group
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment