Message from JavaScript discussions

July 2017

— Ugh

— 

I hate the

if (a) {
if (c) { ... }
if (d) { ... }
}
if (b) {
if (c) { ... }
if (d) { ... }
}


sequences you sometimes have to do

— 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 ?

— This

— Right

— But I removed it now