lib/measures/AedgK12ElectricEquipmentControls/resources/OsLib_AedgMeasures.rb in openstudio-aedg-0.1.1 vs lib/measures/AedgK12ElectricEquipmentControls/resources/OsLib_AedgMeasures.rb in openstudio-aedg-0.2.0
- old
+ new
@@ -46,12 +46,10 @@
end
end
end
if ashraeClimateZone == '' # should this be not applicable or error?
- if !runner.nil?
- runner.registerError("Please assign an ASHRAE Climate Zone to your model using the site tab in the OpenStudio application. The measure can't make AEDG recommendations without this information.")
- end
+ runner&.registerError("Please assign an ASHRAE Climate Zone to your model using the site tab in the OpenStudio application. The measure can't make AEDG recommendations without this information.")
return false # note - for this to work need to check for false in measure.rb and add return false there as well.
else
climateZoneNumber = ashraeClimateZone.split(//).first
end