chore: adhere to ruff's C (#2379)

This commit is contained in:
dni ⚡
2024-04-03 17:56:05 +02:00
committed by GitHub
parent cd66b7d70c
commit e0b7d2f739
10 changed files with 43 additions and 41 deletions
+2
View File
@@ -167,6 +167,8 @@ class LndRestNode(Node):
point: Optional[ChannelPoint] = None,
force: bool = False,
):
if short_id:
logger.debug(f"Closing channel with short_id: {short_id}")
if not point:
raise HTTPException(
status_code=HTTPStatus.BAD_REQUEST, detail="Channel point required"