Skip to content

Commit f3ceac6

Browse files
committed
sonarqube findings
1 parent 520cc33 commit f3ceac6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/slackBotFunction/app/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def handler(event: dict, context: LambdaContext) -> dict:
2525
3. Async invocation processes Bedrock query and responds to Slack
2626
"""
2727
# register event handlers with the app
28-
app, bot_token = get_app()
28+
app, _ = get_app()
2929
setup_handlers(app)
3030

3131
logger.info("Lambda invoked", extra={"is_async": event.get("async_processing", False)})

packages/slackBotFunction/app/slack/slack_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def process_async_slack_event(slack_event_data):
2626
event = slack_event_data["event"]
2727
event_id = slack_event_data["event_id"]
2828
token = slack_event_data["bot_token"]
29-
KNOWLEDGEBASE_ID, RAG_MODEL_ID, AWS_REGION, GUARD_RAIL_ID, GUARD_VERSION, BOT_MESSAGES = get_environment_variables()
29+
_, _, _, _, _, BOT_MESSAGES = get_environment_variables()
3030

3131
client = WebClient(token=token)
3232

packages/slackBotFunction/app/slack/slack_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def handle_app_mention(event, ack, body):
4040
user_id = event.get("user", "unknown")
4141
logger.info("Processing @mention from user", extra={"user_id": user_id, "event_id": event_id})
4242

43-
app, bot_token = get_app()
43+
_, bot_token = get_app()
4444
trigger_async_processing({"event": event, "event_id": event_id, "bot_token": bot_token})
4545

4646
@app.event("message")
@@ -63,7 +63,7 @@ def handle_direct_message(event, ack, body):
6363
user_id = event.get("user", "unknown")
6464
logger.info("Processing DM from user", extra={"user_id": user_id, "event_id": event_id})
6565

66-
app, bot_token = get_app()
66+
_, bot_token = get_app()
6767
trigger_async_processing({"event": event, "event_id": event_id, "bot_token": bot_token})
6868

6969

0 commit comments

Comments
 (0)