lib/mws/orders/tokenable.rb in mws-orders-0.2.2 vs lib/mws/orders/tokenable.rb in mws-orders-0.3.0
- old
+ new
@@ -1,10 +1,12 @@
+# frozen_string_literal: true
+
module MWS
module Orders
module Tokenable
def next_token
node = xpath('NextToken').first
- node.text if node
+ node&.text
end
end
end
end