remove unnecessary wrapper `commit'