Skip to content

Commit

Permalink
fix introduced bug from rubocop edits in Standards.ThermalZone.rb
Browse files Browse the repository at this point in the history
prior commit changed
      if prior_rules.size == 0
to
      if prior_rules.size.empty?
when it should be
      if prior_rules.empty?
  • Loading branch information
mdahlhausen committed Dec 18, 2020
1 parent e93356e commit 89b2470
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def spaces_get_occupancy_schedule(spaces, sch_name: nil, occupied_percentage_thr
# todo - also merging non adjacent priority rules without getting rid of any rules between the two could create unexpected reults
prior_rules = []
sch_ruleset.scheduleRules.each do |rule|
if prior_rules.size.empty?
if prior_rules.empty?
prior_rules << rule
next
else
Expand Down

0 comments on commit 89b2470

Please sign in to comment.