lib/twilio-ruby/rest/preview/deployed_devices.rb in twilio-ruby-5.48.0 vs lib/twilio-ruby/rest/preview/deployed_devices.rb in twilio-ruby-5.49.0

- old
+ new

@@ -23,14 +23,15 @@ # requested Fleet resource. # @return [Twilio::REST::Preview::DeployedDevices::FleetContext] if sid was passed. # @return [Twilio::REST::Preview::DeployedDevices::FleetList] def fleets(sid=:unset) if sid.nil? - raise ArgumentError, 'sid cannot be nil' - elsif sid == :unset - @fleets ||= FleetList.new self + raise ArgumentError, 'sid cannot be nil' + end + if sid == :unset + @fleets ||= FleetList.new self else - FleetContext.new(self, sid) + FleetContext.new(self, sid) end end ## # Provide a user friendly representation \ No newline at end of file