mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Python: Remove unnecessary comment
Was introduced in 5d031d7abe when I actually fixed
the loop variable capture problem.
This commit is contained in:
@@ -11,7 +11,6 @@ def better_compare_for_dataclass(cls):
|
||||
]:
|
||||
old = getattr(cls, op)
|
||||
|
||||
# Fix loop variable capture (py/loop-variable-capture)
|
||||
def new(self, other, op=op, old=old):
|
||||
if type(self) == type(other):
|
||||
return old(self, other)
|
||||
|
||||
Reference in New Issue
Block a user