mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 00:19:01 +00:00
Replace chained concatenation reassignment with simple concatenation
Example: x = y x = x .. z Fixed: x = y .. z This simple fix would save 1 string creation/deletion. Most changes involve many more than this.
This commit is contained in:
@@ -122,7 +122,7 @@ Request = {
|
||||
-- Converts a FindNode Request to a string
|
||||
__tostring = function(self)
|
||||
local data = tostring(self.header)
|
||||
data = data .. bin.pack(">CAII", self.id_length, self.node_id, self.status, self.dht_size)
|
||||
.. bin.pack(">CAII", self.id_length, self.node_id, self.status, self.dht_size)
|
||||
return data
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user