Integrate review feedback

* Add ignore statement for linter
* Don't shadow variable names
This commit is contained in:
Markus Ongyerth 2022-10-29 12:45:24 +02:00 committed by Bill Thornton
parent 17eede9062
commit d54a89d10a

View File

@ -324,6 +324,7 @@ import toast from './toast/toast';
const apiClient = ServerConnections.getApiClient(serverId);
return new Promise(function (resolve, reject) {
// eslint-disable-next-line sonarjs/max-switch-cases
switch (id) {
case 'addtocollection':
import('./collectionEditor/collectionEditor').then(({default: CollectionEditor}) => {
@ -380,8 +381,8 @@ import toast from './toast/toast';
Fields: 'CanDownload,Path'
});
}
)).then(seasons => {
downloadEpisodes([].concat.apply([], seasons.map(season => season.Items)));
)).then(seasonData => {
downloadEpisodes([].concat.apply([], seasonData.map(season => season.Items)));
});
};