From a90ff41f71ae78ba69319e86f49ff3671e49f8f7 Mon Sep 17 00:00:00 2001 From: Christophe De La Fuente Date: Mon, 12 Feb 2024 16:20:12 +0100 Subject: [PATCH] Use `casecmp?` instead of `casecmp` --- lib/msf/core/modules/metadata/obj.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/modules/metadata/obj.rb b/lib/msf/core/modules/metadata/obj.rb index ac48ab0822bf..747b9a60600f 100644 --- a/lib/msf/core/modules/metadata/obj.rb +++ b/lib/msf/core/modules/metadata/obj.rb @@ -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