July 2017
— The mess is caused by the difference in the sequence... we need to get a template if we don't have it cached, so it kind of mucks up the flow of things
Message permanent page
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...
— Ugh
— I hate the
if (a) { if (c) { ... } if (d) { ... }}if (b) { if (c) { ... } if (d) { ... }}
— So much repetition
— Yeah, me no likey!
— In your case c and d are conf.isFile and conf.async
— Yes
— Why not just have it always return a promise?
— That's an interesting idea, I guess
— What's the difference between insertionThunk and saveInsertionThunk ?
insertionThunk
saveInsertionThunk
— This