Can also get rid of the `run` and move parens to simplify even further:
function doWork() {
const x = () => {
if (foo()) return f();
if (bar()) return g();
return h();
};
return x() * 10;
}