ruby/trema/enqueue.rb in trema-0.2.5 vs ruby/trema/enqueue.rb in trema-0.2.6

- old
+ new

@@ -58,16 +58,16 @@ @port_number = options[ :port_number ] @queue_id = options[ :queue_id ] if @port_number.nil? raise ArgumentError, "Port number is a mandatory option" end - if not @port_number.unsigned_16bit? + unless @port_number.unsigned_16bit? raise ArgumentError, "Port number must be an unsigned 16-bit integer" end if @queue_id.nil? raise ArgumentError, "Queue ID is a mandatory option" end - if not @queue_id.unsigned_32bit? + unless @queue_id.unsigned_32bit? raise ArgumentError, "Queue ID must be an unsigned 32-bit integer" end else raise "Invalid option" end