Small cleanup in finding min value