Skip to content

Commit a0cc8a7

Browse files
Minor fixes to please our eslint overlord
1 parent 6198941 commit a0cc8a7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

PictureInput.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -486,20 +486,18 @@ export default {
486486
preloadImage (source, options) {
487487
// ie 11 support
488488
let File = window.File
489-
490489
try {
491-
new File([], '')
492-
} catch(e) {
490+
new File([], '') // eslint-disable-line
491+
} catch (e) {
493492
File = class File extends Blob {
494-
constructor(chunks, filename, opts = {}){
493+
constructor (chunks, filename, opts = {}) {
495494
super(chunks, opts)
496495
this.lastModifiedDate = new Date()
497-
this.lastModified =+ this.lastModifiedDate
496+
this.lastModified = +this.lastModifiedDate
498497
this.name = filename
499498
}
500499
}
501500
}
502-
503501
options = Object.assign({}, options)
504502
if (typeof source === 'object') {
505503
this.imageSelected = true

0 commit comments

Comments
 (0)