Fix warning: empty body in if condition.
Fix warning: unused parameter.