diff --git a/service/lib/agama/config.rb b/service/lib/agama/config.rb index 0ae3ee2d96..3b4c2ba811 100644 --- a/service/lib/agama/config.rb +++ b/service/lib/agama/config.rb @@ -168,6 +168,8 @@ def merge(config) # # @param keys [Array] Config data keys of the collection. # @param property [Symbol|String|nil] Property to retrieve of the elements. + # @param default [Object] The default value returned when the value is not + # found or is not an array # # @return [Array] def arch_elements_from(*keys, property: nil, default: []) diff --git a/service/lib/agama/software/product.rb b/service/lib/agama/software/product.rb index 5f2cd72da8..509f6f0ea7 100644 --- a/service/lib/agama/software/product.rb +++ b/service/lib/agama/software/product.rb @@ -99,7 +99,7 @@ def initialize(id) @optional_packages = [] @mandatory_patterns = [] @optional_patterns = [] - # nil = display all patterns, [] = display none patterns + # nil = display all patterns, [] = display no patterns @user_patterns = nil @translations = {} end