Use ||= for consistency

bug/bundler_fix
HD Moore 2015-04-06 10:55:14 -05:00
parent 3c59519811
commit 98c95104da
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ protected
uuid = info[:uuid] || Msf::Payload::UUID.new uuid = info[:uuid] || Msf::Payload::UUID.new
# Configure the UUID architecture and payload if necessary # Configure the UUID architecture and payload if necessary
uuid.arch = obj.arch if uuid.arch.nil? uuid.arch ||= obj.arch
uuid.platform = obj.platform if uuid.platform.nil? uuid.platform ||= obj.platform
print_status "#{cli.peerhost}:#{cli.peerport} Request received for #{req.relative_resource}... (UUID:#{uuid.to_s})" print_status "#{cli.peerhost}:#{cli.peerport} Request received for #{req.relative_resource}... (UUID:#{uuid.to_s})"