Change negated in to not in
This is a cosmetic thing that a linter found. Not important. Signed-off-by: Radomir Dopieralski <openstack@dopieralski.pl> Change-Id: Ifdffc5e60a0bab060149d49959a5fc1bc58e8d91
This commit is contained in:
@@ -124,7 +124,7 @@ class OperationLogMiddleware(object):
|
||||
if not request.user.is_authenticated:
|
||||
return
|
||||
method = request.method.upper()
|
||||
if not (method in self.target_methods):
|
||||
if method not in self.target_methods:
|
||||
return
|
||||
for rule in self._ignored_urls:
|
||||
if rule.search(request_url):
|
||||
|
||||
Reference in New Issue
Block a user