lib/eco/api/session/config.rb in eco-helpers-2.5.5 vs lib/eco/api/session/config.rb in eco-helpers-2.5.6
- old
+ new
@@ -248,14 +248,10 @@
# It obtains the first of the live tagtree in the org
# @note it requires graphql connection configuration parameters
# @return [Eco::API::Organization::TagTree]
def live_tree(id: nil, enviro: nil, **kargs, &block)
- if id
- tagtree_config.live_tree_get(id: id, enviro: enviro, **kargs, &block)
- else
- tagtree_config.live_tree(enviro: enviro, **kargs, &block)
- end
+ tagtree_config.live_tree(id: id, enviro: enviro, **kargs, &block)
end
# @return [Eco::API::Organization::PolicyGroups]
def policy_groups
return @policy_groups if instance_variable_defined?(:@policy_groups)