lib/twilio-ruby/rest/studio/v2.rb in twilio-ruby-5.48.0 vs lib/twilio-ruby/rest/studio/v2.rb in twilio-ruby-5.49.0
- old
+ new
@@ -23,14 +23,15 @@
# @param [String] sid The SID of the Flow resource to fetch.
# @return [Twilio::REST::Studio::V2::FlowContext] if sid was passed.
# @return [Twilio::REST::Studio::V2::FlowList]
def flows(sid=:unset)
if sid.nil?
- raise ArgumentError, 'sid cannot be nil'
- elsif sid == :unset
- @flows ||= FlowList.new self
+ raise ArgumentError, 'sid cannot be nil'
+ end
+ if sid == :unset
+ @flows ||= FlowList.new self
else
- FlowContext.new(self, sid)
+ FlowContext.new(self, sid)
end
end
##
# @return [Twilio::REST::Studio::V2::FlowValidateContext]
\ No newline at end of file