gui: Remove needless looping in ignoreFolder() (#7059)

This commit is contained in:
André Colomb 2020-10-26 11:27:03 +01:00 committed by GitHub
parent 0d90ae26ac
commit c7d40ccbae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1927,10 +1927,8 @@ angular.module('syncthing.core')
// Bump time
pendingFolder.time = (new Date()).toISOString();
if (id in $scope.devices) {
$scope.devices[id].ignoredFolders.push(pendingFolder);
$scope.saveConfig();
}
$scope.devices[id].ignoredFolders.push(pendingFolder);
$scope.saveConfig();
};
$scope.sharesFolder = function (folderCfg) {