fix(util): remove unused [] (#8075)

fix(util): remove unused []
This commit is contained in:
萤火之卫 2021-02-04 09:18:14 +08:00 committed by GitHub
parent 86b7a32621
commit 1aa791bd6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,6 @@ function getBestSelectionFromSrcset(el, scale) {
if (el.tagName !== 'IMG' || !el.getAttribute('data-srcset')) return;
let options = el.getAttribute('data-srcset');
[];
const container = el.parentNode;
const containerWidth = container.offsetWidth * scale;