Prefer string interpolation to concatenation

This commit is contained in:
Tom Hughes 2020-11-13 11:32:28 +00:00
parent 45d4242f9d
commit bfffe7ed96
13 changed files with 30 additions and 30 deletions

View file

@ -62,7 +62,7 @@ module Potlatch
# Envelope data into AMF writeable form
def self.putdata(index, n)
d = encodestring(index + "/onResult")
d = encodestring("#{index}/onResult")
d += encodestring("null")
d += [-1].pack("N")
d += encodevalue(n)