Skip to content

Commit e98fd45

Browse files
committed
style: apply ruff formatting to xquik_toolkit.py
1 parent f71a5fd commit e98fd45

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

camel/toolkits/xquik_toolkit.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,8 @@ def get_trends(woeid: int = 1, count: int = 20) -> str:
213213
str: A JSON-formatted string with a list of trending topics.
214214
"""
215215
try:
216-
data = _xquik_get(
217-
"/trends", {"woeid": woeid, "count": min(count, 50)}
218-
)
219-
return json.dumps(
220-
{"trends": data.get("trends", [])}, indent=2
221-
)
216+
data = _xquik_get("/trends", {"woeid": woeid, "count": min(count, 50)})
217+
return json.dumps({"trends": data.get("trends", [])}, indent=2)
222218
except Exception as e:
223219
logger.exception("Error fetching trends via Xquik")
224220
return json.dumps({"error": str(e)})

0 commit comments

Comments
 (0)