lib/twilio-ruby/rest/api/v2010.rb in twilio-ruby-5.48.0 vs lib/twilio-ruby/rest/api/v2010.rb in twilio-ruby-5.49.0
- old
+ new
@@ -24,14 +24,15 @@
# fetch
# @return [Twilio::REST::Api::V2010::AccountContext] if sid was passed.
# @return [Twilio::REST::Api::V2010::AccountList]
def accounts(sid=:unset)
if sid.nil?
- raise ArgumentError, 'sid cannot be nil'
- elsif sid == :unset
- @accounts ||= AccountList.new self
+ raise ArgumentError, 'sid cannot be nil'
+ end
+ if sid == :unset
+ @accounts ||= AccountList.new self
else
- AccountContext.new(self, sid)
+ AccountContext.new(self, sid)
end
end
##
# Account provided as the authenticating account
\ No newline at end of file