— Hm, I think if I inline the cache check in the actual insertion function, I can just use the same one everywhere, maybe that would help...
Message permanent page
— I hate the
if (a) {
if (c) { ... }
if (d) { ... }
}
if (b) {
if (c) { ... }
if (d) { ... }
}
sequences you sometimes have to do
Message permanent page
— In your case c and d are conf.isFile and conf.async
— Why not just have it always return a promise?
— That's an interesting idea, I guess
— What's the difference between insertionThunk
and saveInsertionThunk
?