1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove redundant variable assignments

This commit is contained in:
MrTimscampi 2020-07-30 19:42:30 +02:00
parent e7180e2633
commit a395e6b3d3
6 changed files with 10 additions and 24 deletions

View file

@ -183,11 +183,9 @@
width = height * (16.0 / 9.0);
}
const closest = standardWidths.sort(function (a, b) {
return standardWidths.sort(function (a, b) {
return Math.abs(width - a) - Math.abs(width - b);
})[0];
return closest;
}
/**