Fix jslint warning: 'sortedList' is already defined

sortedList was defined twice in the function
remove the declaration at the beginning of function as declaring a var
just before using it is more similar to the rest of code
This commit is contained in:
Emmanuel Kasper 2016-10-10 14:32:51 +02:00 committed by Dietmar Maurer
parent e2d725633e
commit 88ecfbdbda

View File

@ -18,7 +18,6 @@ Ext.define('PVE.form.ControllerSelector', {
vmconfig: {}, // used to check for existing devices
sortByPreviousUsage: function(vmconfig, controllerList) {
var sortedList = [];
var usedControllers = Ext.clone(PVE.form.ControllerSelector.maxIds);