Remove redundant then keyword