Skip to content

Commit

Permalink
Use casecmp? instead of casecmp
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelafuente-r7 committed Feb 12, 2024
1 parent 2f4a1ac commit a90ff41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/modules/metadata/obj.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def force_encoding(encoding)
def parse_platform_list(platform_string)
return nil if platform_string.nil?

if platform_string.casecmp('All')
if platform_string.casecmp?('All')
# empty string represents all platforms in Msf::Module::PlatformList
platforms = ['']
else
Expand Down

0 comments on commit a90ff41

Please sign in to comment.