This commit doesn't change the logic flow from previous code, it only
makes the code more readable and consistent.
More details on thread:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12185
(cherry picked from commit 90e724af45)