Fix code review issues: incomplete isinstance and variable name mismatch

Co-authored-by: seanthegeek <44679+seanthegeek@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-17 21:45:21 +00:00
parent e93209c766
commit 9a64b494e7
2 changed files with 2 additions and 4 deletions

View File

@@ -1632,7 +1632,7 @@ def parse_report_email(
if isinstance(payload, bytes):
payload = payload.decode("utf-8", errors="replace")
if payload.strip().startswith("{"):
result = parse_smtp_tls_report_json(payload)
smtp_tls_report = parse_smtp_tls_report_json(payload)
result = {
"report_type": "smtp_tls",
"report": smtp_tls_report,

View File

@@ -110,9 +110,7 @@ class KafkaClient(object):
aggregate_topic (str): The name of the Kafka topic
"""
if isinstance(aggregate_reports, dict) or isinstance(
aggregate_reports
):
if isinstance(aggregate_reports, dict):
aggregate_reports = [aggregate_reports]
if len(aggregate_reports) < 1: