I think you could achieve what you're trying to do by making the signature `function syncButtonVisible(yesNo, done) {};` and then not returning a new function? Also could you choose a better variable name like `isVisible`?