From 98c95104daf769366d2c596ccfc7a90bc52e2796 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Mon, 6 Apr 2015 10:55:14 -0500 Subject: [PATCH] Use ||= for consistency --- lib/msf/core/handler/reverse_http.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/core/handler/reverse_http.rb b/lib/msf/core/handler/reverse_http.rb index 928874e085..603960d6d7 100644 --- a/lib/msf/core/handler/reverse_http.rb +++ b/lib/msf/core/handler/reverse_http.rb @@ -219,8 +219,8 @@ protected uuid = info[:uuid] || Msf::Payload::UUID.new # Configure the UUID architecture and payload if necessary - uuid.arch = obj.arch if uuid.arch.nil? - uuid.platform = obj.platform if uuid.platform.nil? + uuid.arch ||= obj.arch + uuid.platform ||= obj.platform print_status "#{cli.peerhost}:#{cli.peerport} Request received for #{req.relative_resource}... (UUID:#{uuid.to_s})"