Skip to content

Commit 489afd5

Browse files
committed
Remove redundant check for ascii_str setting
1 parent 849f904 commit 489afd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/payloads/meterpreter/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Rex::Payloads::Meterpreter::Config
1818

1919
def initialize(opts={})
2020
@opts = opts
21-
if opts[:ascii_str] && opts[:ascii_str] == true
21+
if opts[:ascii_str] == true
2222
@to_str = self.method(:to_ascii)
2323
else
2424
@to_str = self.method(:to_wchar_t)

0 commit comments

Comments
 (0)