Minor Cleanup (#11318)
Minor Cleanup (#11318)

* 🧹 remove common code out of if-else construct

* 👌🏼 remove `this.async()` usages

References:
- https://github.com/jhipster/generator-jhipster/pull/11254
- https://yeoman.io/authoring/running-context.html at 'Asynchronous tasks' topic
ctamisier/generator-jhipster,jhipster/generator-jhipster,atomfrede/generator-jhipster,vivekmore/generator-jhipster,gmarziou/generator-jhipster,mosoft521/generator-jhipster,PierreBesson/generator-jhipster,sendilkumarn/generator-jhipster,sendilkumarn/generator-jhipster,wmarques/generator-jhipster,vivekmore/generator-jhipster,mraible/generator-jhipster,gmarziou/generator-jhipster,mosoft521/generator-jhipster,vivekmore/generator-jhipster,sendilkumarn/generator-jhipster,liseri/generator-jhipster,mraible/generator-jhipster,wmarques/generator-jhipster,vivekmore/generator-jhipster,gmarziou/generator-jhipster,cbornet/generator-jhipster,PierreBesson/generator-jhipster,ctamisier/generator-jhipster,PierreBesson/generator-jhipster,pascalgrimaud/generator-jhipster,pascalgrimaud/generator-jhipster,wmarques/generator-jhipster,cbornet/generator-jhipster,ruddell/generator-jhipster,ctamisier/generator-jhipster,wmarques/generator-jhipster,ruddell/generator-jhipster,gmarziou/generator-jhipster,ctamisier/generator-jhipster,mosoft521/generator-jhipster,dynamicguy/generator-jhipster,atomfrede/generator-jhipster,liseri/generator-jhipster,vivekmore/generator-jhipster,PierreBesson/generator-jhipster,sendilkumarn/generator-jhipster,mraible/generator-jhipster,jhipster/generator-jhipster,jhipster/generator-jhipster,atomfrede/generator-jhipster,mraible/generator-jhipster,pascalgrimaud/generator-jhipster,ctamisier/generator-jhipster,liseri/generator-jhipster,liseri/generator-jhipster,ruddell/generator-jhipster,PierreBesson/generator-jhipster,jhipster/generator-jhipster,dynamicguy/generator-jhipster,atomfrede/generator-jhipster,jhipster/generator-jhipster,pascalgrimaud/generator-jhipster,mosoft521/generator-jhipster,gmarziou/generator-jhipster,mosoft521/generator-jhipster,ruddell/generator-jhipster,cbornet/generator-jhipster,pascalgrimaud/generator-jhipster,liseri/generator-jhipster,cbornet/generator-jhipster,atomfrede/generator-jhipster,sendilkumarn/generator-jhipster,dynamicguy/generator-jhipster,ruddell/generator-jhipster,cbornet/generator-jhipster,mraible/generator-jhipster,dynamicguy/generator-jhipster,wmarques/generator-jhipster