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:
parent
8958be9321
commit
d3f9a3aeb5
136 changed files with 2540 additions and 2657 deletions
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue