Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Commit

Permalink
Combining this into one line
Browse files Browse the repository at this point in the history
  • Loading branch information
emmahsax committed Dec 15, 2016
1 parent 16c3e01 commit cf6c69a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/sport_ngin_aws_auditor/instance_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def add_region_ris_to_hash(ris_region, differences)
def add_additional_instances_to_hash(instances_to_add, instance_hash, extra_string)
instances_to_add.each do |instance|
next if instance.nil?
n = instance.name || ""
key = instance.to_s.dup << extra_string << n << ")"
key = instance.to_s.dup << extra_string << (instance.name || "") << ")"
instance_result = {}

if instance_hash.has_key?(instance.to_s) && instance_hash[instance.to_s][:count] > 0
Expand Down

0 comments on commit cf6c69a

Please sign in to comment.