lib/openstudio/analysis/translator/excel.rb in openstudio-analysis-1.0.2 vs lib/openstudio/analysis/translator/excel.rb in openstudio-analysis-1.0.3

- old
+ new

@@ -1,7 +1,7 @@ # ******************************************************************************* -# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC. +# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # (1) Redistributions of source code must retain the above copyright notice, @@ -534,10 +534,10 @@ tmp_m_name = row[1] else tmp_m_name = SecureRandom.uuid end # Only add models if the row is flagged - if row[0] && row[0].casecmp('model').zero? + if row[0]&.casecmp('model')&.zero? model_path = row[3] unless (Pathname.new model_path).absolute? model_path = File.expand_path(File.join(@root_path, model_path)) end @models << { name: tmp_m_name.to_underscore, display_name: tmp_m_name, type: row[2], path: model_path }