Code refactoring

Flow first look
This commit is contained in:
RainLoop Team 2016-09-10 01:38:16 +03:00
parent 2f841524cb
commit e6e0b02849
71 changed files with 2092 additions and 1836 deletions

View file

@ -437,11 +437,12 @@ class AppUser extends AbstractApp
const prom = Promises.foldersReload(FolderStore.foldersLoading);
if (callback)
{
prom.then((value) => {
callback(!!value);
}).catch(() => {
prom.then((value) => !!value).then(callback).catch(() => {
_.delay(() => {
callback(false);
if (callback)
{
callback(false); // eslint-disable-line callback-return
}
}, 1);
});
}