follouwp: code cleanup for bond_mode_array

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-07-10 12:36:57 +02:00
parent 211bdf934f
commit 61e428c29d

View File

@ -114,12 +114,7 @@ Ext.define('Proxmox.Utils', { utilities: {
},
bond_mode_array: function(modes) {
var arr = [];
var i;
for (i = 0; i < modes.length; i++) {
arr.push([modes[i], Proxmox.Utils.render_bond_mode(modes[i])]);
}
return arr;
return modes.map(mode => [mode, Proxmox.Utils.render_bond_mode(mode)]);
},
getNoSubKeyHtml: function(url) {