Remove redundant check for ascii_str setting

bug/bundler_fix
OJ 2015-05-12 09:50:58 +10:00
parent 849f904711
commit 489afd5aa1
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class Rex::Payloads::Meterpreter::Config
def initialize(opts={})
@opts = opts
if opts[:ascii_str] && opts[:ascii_str] == true
if opts[:ascii_str] == true
@to_str = self.method(:to_ascii)
else
@to_str = self.method(:to_wchar_t)