Skip to content

Commit 7937fbc

Browse files
author
Tod Beardsley
committed
More idiomatic ruby with symbols and spaces
1 parent 9180dd5 commit 7937fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/rpc/v10/service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def process(req)
122122
raise ArgumentError, "Invalid Message Format"
123123
end
124124

125-
msg.map { |a| a.respond_to?("force_encoding")?a.force_encoding(self.str_encoding):a }
125+
msg.map { |a| a.respond_to?(:force_encoding) ? a.force_encoding(self.str_encoding) : a }
126126

127127
group, funct = msg.shift.split(".", 2)
128128

0 commit comments

Comments
 (0)