Browse Source

[2222] removed checking self._counter_xfrrej isn't `None`

Because self._counter_xfrrej is no longer assigned to `None` as a
default in the constructor.
Naoki Kambe 12 years ago
parent
commit
af6832161c
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/bin/xfrout/xfrout.py.in

+ 2 - 3
src/bin/xfrout/xfrout.py.in

@@ -278,9 +278,8 @@ class XfroutSession():
                          format_zone_str(zone_name, zone_class))
             return None, None
         elif acl_result == REJECT:
-            if self._counter_xfrrej is not None:
-                # count rejected Xfr request by each zone name
-                self._counter_xfrrej(zone_name.to_text())
+            # count rejected Xfr request by each zone name
+            self._counter_xfrrej(zone_name.to_text())
             logger.debug(DBG_XFROUT_TRACE, XFROUT_QUERY_REJECTED,
                          self._request_type, format_addrinfo(self._remote),
                          format_zone_str(zone_name, zone_class))