Skip to content

Commit 8cc48e0

Browse files
author
HD Moore
committed
Make Polyglot happy
1 parent 9bce08b commit 8cc48e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/payload/uuid.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@ def self.parse_uri(uri)
196196
#
197197
def self.find_platform_id(platform)
198198
# Handle a PlatformList input by grabbing the first entry
199-
if platform.respond_to? :platforms
199+
if platform.respond_to?(:platforms)
200200
platform = platform.platforms.first.realname.downcase
201201
end
202202

203203
# Map a platform abbreviation to the real name
204204
name = Msf::Platform.find_platform(platform)
205-
if name && name.respond_to? :realname
205+
if name && name.respond_to?(:realname)
206206
name = name.realname.downcase
207207
end
208208

0 commit comments

Comments
 (0)