From 19dacfbb3a84690c83a04bb61beebe5b1753996f Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Wed, 26 Jun 2024 20:37:26 -0700 Subject: [PATCH] Nit: remove unused variable Unsure what the intention of this variable was, but doesn't do anything now. Signed-off-by: Eric Brown --- bandit/core/node_visitor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bandit/core/node_visitor.py b/bandit/core/node_visitor.py index 27a4de5ee..938e8733b 100644 --- a/bandit/core/node_visitor.py +++ b/bandit/core/node_visitor.py @@ -19,7 +19,6 @@ def __init__( ): self.debug = debug self.nosec_lines = nosec_lines - self.seen = 0 self.scores = { "SEVERITY": [0] * len(constants.RANKING), "CONFIDENCE": [0] * len(constants.RANKING), @@ -209,7 +208,6 @@ def pre_visit(self, node): self.context["filename"] = self.fname self.context["file_data"] = self.fdata - self.seen += 1 LOG.debug( "entering: %s %s [%s]", hex(id(node)), type(node), self.depth )