diff --git a/js/components/upload_input.js b/js/components/upload_input.js index a7ef694e..edf01450 100644 --- a/js/components/upload_input.js +++ b/js/components/upload_input.js @@ -110,7 +110,7 @@ export default { clearErrors: function() { this.uploadError = false this.sizeError = false - } + }, }, computed: { @@ -126,7 +126,11 @@ export default { return this.hasInitialData && !this.changed }, showErrors: function() { - return (!this.changed && this.initialErrors) || this.uploadError || this.sizeError - } + return ( + (!this.changed && this.initialErrors) || + this.uploadError || + this.sizeError + ) + }, }, } diff --git a/js/lib/upload.js b/js/lib/upload.js index 17e0b095..ff85ab4a 100644 --- a/js/lib/upload.js +++ b/js/lib/upload.js @@ -32,9 +32,9 @@ class AzureUploader { options, function(err, result) { if (err) { - resolve({ok: false}) + resolve({ ok: false }) } else { - resolve({ok: true}) + resolve({ ok: true }) } } )