Skip to content

Commit 4543af1

Browse files
committed
ESLint
1 parent 201c2c3 commit 4543af1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/components/form-file.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
this.selectedFile = null;
156156
return;
157157
}
158-
;
158+
159159
if (!this.multiple) {
160160
this.selectedFile = files[0];
161161
return;
@@ -164,10 +164,9 @@
164164
// Convert files to array
165165
const filesArray = [];
166166
for (let i = 0; i < files.length; i++) {
167-
files[i].type.match(this.accept) && filesArray.push(files[i]);
167+
if (files[i].type.match(this.accept)) filesArray.push(files[i]);
168168
}
169169
170-
171170
this.selectedFile = filesArray;
172171
},
173172
dragover(e) {

0 commit comments

Comments
 (0)