get_the_ID() is unnecessary inside get_post_type()

When inside a loop, get_post_type() defaults to the current post if none is passed.