Remove unnecessary cast to void.
Rework comment slightly and fix a few typos.
Remove unnecessary check against isGlobalVariable. We check it
a few lines above.