Skip to content

Commit d131e4b

Browse files
committed
Quality pass
1 parent 65a819d commit d131e4b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sonar/hotspots.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from __future__ import annotations
2323

24-
import math
2524
import json
2625
import re
2726
from http import HTTPStatus
@@ -414,7 +413,7 @@ def search(endpoint: pf.Platform, filters: types.ApiParams = None) -> dict[str,
414413
if nbr_hotspots > Hotspot.MAX_SEARCH:
415414
raise TooManyHotspotsError(
416415
nbr_hotspots,
417-
f"{nbr_hotspots} hotpots returned by api/{Hotspot.SEARCH_API}, " f"this is more than the max {Hotspot.MAX_SEARCH} possible",
416+
f"{nbr_hotspots} hotpots returned by api/{Hotspot.SEARCH_API}, this is more than the max {Hotspot.MAX_SEARCH} possible",
418417
)
419418

420419
for i in data["hotspots"]:

sonar/portfolios.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ def to_json(self, export_settings: types.ConfigSettings) -> types.ObjectJsonRepr
368368
def export(self, export_settings: types.ConfigSettings) -> types.ObjectJsonRepr:
369369
"""Exports a portfolio (for sonar-config)"""
370370
log.info("Exporting %s", str(self))
371-
exp = self.to_json(export_settings)
372371
return util.remove_nones(util.filter_export(self.to_json(export_settings), _IMPORTABLE_PROPERTIES, export_settings["FULL_EXPORT"]))
373372

374373
def permissions(self) -> pperms.PortfolioPermissions:

0 commit comments

Comments
 (0)