Skip to content

Commit

Permalink
update comments - address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
weilixu committed Aug 7, 2023
1 parent d925e4a commit c354d00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/openstudio-standards/utilities/assertion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_additional_property_as_boolean(component, key, default = false)
# if no such additional property, then return default value.
# @param component [OpenStudio object] the component to get the additional property from
# @param key [String] key string
# @param default [Boolean] the default to return when there is no matching key
# @param default [Integer] the default to return when there is no matching key
def get_additional_property_as_integer(component, key, default = 0.0)
value = default
if component.additionalProperties.getFeatureAsInteger(key).is_initialized
Expand All @@ -81,7 +81,7 @@ def get_additional_property_as_integer(component, key, default = 0.0)
# if no such additional property, then return default value.
# @param component [OpenStudio object] the component to get the additional property from
# @param key [String] key string
# @param default [Boolean] the default to return when there is no matching key
# @param default [Double] the default to return when there is no matching key
def get_additional_property_as_double(component, key, default = 0.0)
value = default
if component.additionalProperties.getFeatureAsDouble(key).is_initialized
Expand All @@ -96,7 +96,7 @@ def get_additional_property_as_double(component, key, default = 0.0)
# if no such additional property, then return default value.
# @param component [OpenStudio object] the component to get the additional property from
# @param key [String] key string
# @param default [Boolean] the default to return when there is no matching key
# @param default [String] the default to return when there is no matching key
def get_additional_property_as_string(component, key, default = "")
value = default
if component.additionalProperties.getFeatureAsString(key).is_initialized
Expand Down

0 comments on commit c354d00

Please sign in to comment.