lib/openstudio-standards/standards/necb/NECB2011/lighting.rb in openstudio-standards-0.6.0.rc2 vs lib/openstudio-standards/standards/necb/NECB2011/lighting.rb in openstudio-standards-0.6.3
- old
+ new
@@ -52,10 +52,10 @@
return unless set_lights && lights_have_info
# Remove all but the first instance
instances = space_type.lights.sort
- if instances.size.zero?
+ if instances.empty?
definition = OpenStudio::Model::LightsDefinition.new(space_type.model)
if lights_type == 'NECB_Default'
definition.setName("#{space_type.name} Lights Definition")
elsif lights_type == 'LED'
definition.setName("#{space_type.name} Lights Definition - LED lighting")