Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[CHORE]] Remove unreachable branch (#3467)
The `_checkParams` function included a guard to ensure it was only invoked in appropriate situations. Because its one and only call site was itself guarded by an equivalent condition, the branch in `_checkParams` was unreachable. Although this situation made the internal guard of `_checkParams` safe to remove, doing so would have made the function more dangerous in general since anyone introducing new invocations in the future would have to take care to perform a similar check. To avoid introducing such a dangerous interface, remove the function entirely and inline its body at its only call site.
- Loading branch information