Skip to content

Commit f17e679

Browse files
quality: Fix LGTM code quality alerts (fixes #1213) (#1214)
1 parent c47f7a5 commit f17e679

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cve_bin_tool/merge.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def scan_intermediate_file(self, filename):
7474
"""Reads intermediate json file through filename and verify missing fields"""
7575
self.logger.info(f"Loading file: {filename}")
7676

77-
missing_fields = set()
7877
with open(filename) as json_file:
7978
json_file = json_file.read()
8079
inter_data = json.loads(json_file)

cve_bin_tool/output_engine/pdfbuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from reportlab.lib import colors
88
from reportlab.lib.styles import ParagraphStyle as PS
99
from reportlab.lib.units import cm
10-
from reportlab.platypus import Image, PageBreak, Spacer, TableStyle
10+
from reportlab.platypus import PageBreak, Spacer, TableStyle
1111
from reportlab.platypus.doctemplate import (
1212
BaseDocTemplate,
1313
PageTemplate,
@@ -181,7 +181,7 @@ def heading(self, level, title):
181181
self._spacer()
182182

183183
def paragraph(self, text, style=None):
184-
if style == None:
184+
if style is None:
185185
self.contents.append(Paragraph(text, self.body))
186186
else:
187187
self.contents.append(Paragraph(text, style))

0 commit comments

Comments
 (0)