Browse Source

[2252] remove the if condition because we don't need to consider any other status than XFRIN_OK and XFRIN_FAIL

Naoki Kambe 12 years ago
parent
commit
5ac7de770c
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/bin/xfrin/xfrin.py.in

+ 2 - 3
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