minor tweaks for using const and removing unnecessary branch
minor tweaks for using const and removing unnecessary branch

westim/Vim,rufusroflpunch/Vim,rufusroflpunch/Vim,VSCodeVim/Vim,Chillee/Vim,Chillee/VSCodeNeovim,VSCodeVim/Vim,westim/Vim,Chillee/VSCodeNeovim,Chillee/VSCodeNeovim,westim/Vim,Chillee/Vim