[pve-devel] [PATCH pve-manager 1/3] ext6migrate: use Array.prototype.concat() instead of push()

Emmanuel Kasper e.kasper at proxmox.com
Wed Feb 3 16:22:36 CET 2016


On 02/03/2016 02:57 PM, Dietmar Maurer wrote:
>> -	me.column1.push([
>> +	me.column1 = me.column1.concat([
> 
> removing the [ should do the job?
> 

yes it does the job and shortens the code
push() accepts n arguments

v2 on the way




More information about the pve-devel mailing list