Simplify code

This seems like a rather obvious optimization...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>