Skip to content

Commit

Permalink
Make flake8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Mar 2, 2023
1 parent 4bb62a4 commit ac7d947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysis/datastub/leaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,12 @@ def is_specific_leak(self):
def max_leak(self):
max_leak = None
if self.is_generic_leak():
max_leak_ns = max(self.nsleak, key=lambda l: l.normalized())
max_leak_ns = max(self.nsleak, key=lambda leak: leak.normalized())
# Remove M_pos, as it does not work properly
# normalized = max(normalized, max(self.nsleak, key=lambda l: 0 if l.nstype == NSPType.Type3 else l.normalized()).normalized())
max_leak = max_leak_ns
if self.is_specific_leak():
max_leak_sp = max(self.spleak, key=lambda l: l.normalized())
max_leak_sp = max(self.spleak, key=lambda leak: leak.normalized())
# Remove M_pos, as it does not work properly
# normalized = max(normalized, max(self.spleak, key=lambda l: 0 if l.sptype == NSPType.Type3 else l.normalized()).normalized())
max_leak = max_leak_sp if max_leak_sp.normalized() > max_leak.normalized() else max_leak
Expand Down

0 comments on commit ac7d947

Please sign in to comment.