From: Naoki Kambe Date: Mon, 18 Mar 2013 11:01:01 +0000 (+0900) Subject: [2252] remove the if condition because we don't need to consider any other status... X-Git-Tag: bind10-1.2.0beta1-release~474^2~4^2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac7de770cd112d0bc3842dd79c612bae3acc611;p=thirdparty%2Fkea.git [2252] remove the if condition because we don't need to consider any other status than XFRIN_OK and XFRIN_FAIL --- diff --git a/src/bin/xfrin/xfrin.py.in b/src/bin/xfrin/xfrin.py.in index 34a6b5be5e..76c2665462 100755 --- a/src/bin/xfrin/xfrin.py.in +++ b/src/bin/xfrin/xfrin.py.in @@ -1035,9 +1035,8 @@ class XfrinConnection(asyncore.dispatcher): # as possible self._diff = None counter_dict = {XFRIN_OK: 'xfrsuccess', XFRIN_FAIL: 'xfrfail'} - if ret in counter_dict: - self._counters.inc('zones', self._zone_name.to_text(), - counter_dict[ret]) + self._counters.inc('zones', self._zone_name.to_text(), + counter_dict[ret]) return ret