Run eslint --fix
Fixing 1000s of lint issues. Some rules cannot be `--fix`ed but this goes some way to linting the entire codebase.
This commit is contained in:
@@ -28,8 +28,8 @@ import Promise from 'bluebird';
|
||||
* @return {Promise} A promise that resolves with the data:// URI.
|
||||
*/
|
||||
export function readBlobAsDataUri(file) {
|
||||
var deferred = Promise.defer();
|
||||
var reader = new FileReader();
|
||||
const deferred = Promise.defer();
|
||||
const reader = new FileReader();
|
||||
reader.onload = function(e) {
|
||||
deferred.resolve(e.target.result);
|
||||
};
|
||||
@@ -61,7 +61,7 @@ export function decryptFile(file) {
|
||||
return encrypt.decryptAttachment(responseData, file);
|
||||
}).then(function(dataArray) {
|
||||
// Turn the array into a Blob and give it the correct MIME-type.
|
||||
var blob = new Blob([dataArray], {type: file.mimetype});
|
||||
const blob = new Blob([dataArray], {type: file.mimetype});
|
||||
return blob;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user