Skip to content

Commit 98c9510

Browse files
author
HD Moore
committed
Use ||= for consistency
1 parent 3c59519 commit 98c9510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/handler/reverse_http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def on_request(cli, req, obj)
219219
uuid = info[:uuid] || Msf::Payload::UUID.new
220220

221221
# Configure the UUID architecture and payload if necessary
222-
uuid.arch = obj.arch if uuid.arch.nil?
223-
uuid.platform = obj.platform if uuid.platform.nil?
222+
uuid.arch ||= obj.arch
223+
uuid.platform ||= obj.platform
224224

225225
print_status "#{cli.peerhost}:#{cli.peerport} Request received for #{req.relative_resource}... (UUID:#{uuid.to_s})"
226226

0 commit comments

Comments
 (0)