1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-04 00:56:40 +07:00

eslint fix

This commit is contained in:
muerwre 2019-08-09 12:23:07 +07:00
parent dfaac877fb
commit fa4d51360b
81 changed files with 741 additions and 972 deletions
src/utils

View file

@ -13,7 +13,7 @@ export function createUploader<T extends {}, R extends {}>(
): [(args: T) => (args: T & { onProgress: (current: number, total: number) => void }) => any, EventChannel<any>] {
let emit;
const chan = eventChannel(emitter => {
const chan = eventChannel((emitter) => {
emit = emitter;
return () => null;
});
@ -27,7 +27,7 @@ export function createUploader<T extends {}, R extends {}>(
return [wrappedCallback, chan];
}
export const uploadGetThumb = async file => {
export const uploadGetThumb = async (file) => {
if (!file.type || !VALIDATORS.IS_IMAGE_MIME(file.type)) return '';
return await new Promise((resolve, reject) => {