Remove needless "end"