Skip to content

Commit b3cb2db

Browse files
authored
Fix example lint (#376)
1 parent 394bc06 commit b3cb2db

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/fastapi-echo/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
from fastapi import Request, FastAPI, HTTPException
2121

22-
2322
from linebot import (
2423
AsyncLineBotApi, WebhookParser
2524
)
@@ -41,13 +40,13 @@
4140
print('Specify LINE_CHANNEL_ACCESS_TOKEN as environment variable.')
4241
sys.exit(1)
4342

44-
4543
app = FastAPI()
4644
session = aiohttp.ClientSession()
4745
async_http_client = AiohttpAsyncHttpClient(session)
4846
line_bot_api = AsyncLineBotApi(channel_access_token, async_http_client)
4947
parser = WebhookParser(channel_secret)
5048

49+
5150
@app.post("/callback")
5251
async def handle_callback(request: Request):
5352
signature = request.headers['X-Line-Signature']
@@ -71,5 +70,5 @@ async def handle_callback(request: Request):
7170
event.reply_token,
7271
TextSendMessage(text=event.message.text)
7372
)
74-
73+
7574
return 'OK'

0 commit comments

Comments
 (0)