remove unneeded `if`
make invocation style consistent.