Skip to content

Commit 72c36eb

Browse files
committed
Use concatenation
1 parent 830cd26 commit 72c36eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/rex/proto/rmi/model/call_data.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ def encode
3333
block_data = Rex::Java::Serialization::Model::BlockData.new(nil, encode_object_number + encode_uid + encode_operation + encode_hash)
3434

3535
stream.contents << block_data
36-
37-
arguments.each do |v|
38-
stream.contents << v
39-
end
36+
stream.contents += arguments
4037

4138
stream.encode
4239
end

0 commit comments

Comments
 (0)