Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Sep 10, 2017
1 parent be3c0cf commit 77a3e7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/sigma.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,6 @@ def resolve(self, key, value, sigmaparser):
rulefieldvalues = sigmaparser.values[condfield]
for condvalue in self.conditions[condfield]:
if condvalue in rulefieldvalues:
print("found!")
targets.update(self.conditions[condfield][condvalue])
if len(targets) == 0: # no matching condition, try with default mapping
if self.default != None:
Expand Down Expand Up @@ -870,7 +869,7 @@ def matches(self, category, product, service):
"""Match log source definition against given criteria, None = ignore"""
searched = 0
for searchval, selfval in zip((category, product, service), (self.category, self.product, self.service)):
if searchval == None and selfval != None: #
if searchval == None and selfval != None:
return False
if searchval != None:
searched += 1
Expand Down

0 comments on commit 77a3e7e

Please sign in to comment.