lib/cide/config_file_loader.rb in cide-0.9.1 vs lib/cide/config_file_loader.rb in cide-0.9.2
- old
+ new
@@ -309,14 +309,15 @@
end
when Hash then
value.each_pair do |key, value_|
key = key.to_s
path_ = path.append(key)
- if value_.nil?
- value_ = expect_env(path_, key)
- else
- value_ = expect_string(path_, value_)
- end
+ value_ =
+ if value_.nil?
+ expect_env(path_, key)
+ else
+ expect_string(path_, value_)
+ end
hash[key.to_s] = value_ if value_
end
else
type_error(path, 'hash or array of keys or just a string', value)
end