fix: fix lint warnings (#2976)

This commit is contained in:
ねらひかだ authored and GitHub committed 2024-02-09 11:05:35 +01:00
1 parent dfad87386f
commit fe5ca74aa1
4 files changed
+13 -9

No files matched your search

+3 -4
View File
@@ -133,14 +133,13 @@ export default {
: this.req.items[this.selected[0]].isDir)
);
},
resolution: function() {
resolution: function () {
if (this.selectedCount === 1) {
const selectedItem = this.req.items[this.selected[0]];
if (selectedItem && selectedItem.type === 'image') {
if (selectedItem && selectedItem.type === "image") {
return selectedItem.resolution;
}
}
else if (this.req && this.req.type === 'image') {
} else if (this.req && this.req.type === "image") {
return this.req.resolution;
}
return null;