]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/nsrep: refactor a piece of code
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 2 May 2019 12:15:23 +0000 (14:15 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 30 May 2019 15:15:39 +0000 (17:15 +0200)
commitf13d3ef85a15cde847a9038a9e4f87393ff5c6c0
treeedc682139d3ddc99d45b5c3043d8d0e81af706b3
parentfd15bc6c5b7e77c662612f1ee366bf819cb57b04
lib/nsrep: refactor a piece of code

This is yet another logically equivalent change after 270d9964.
Now it's written in a way that expresses the original intention more
clearly and without copy&paste or long lines.

It seems easiest to verify by inspecting the meaning of the code
*separartely* for the two cases, based on condition:
cur_addr_score < KR_NS_TIMEOUT
lib/nsrep.c