Skip to content

Commit 6a77bbb

Browse files
We do not need to nonlocal keyword because the variables are not reassigned
1 parent f84ac6f commit 6a77bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slack_bolt/listener/thread_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def run(
111111
if not request.lazy_only:
112112
# start the listener function asynchronously
113113
def run_ack_function_asynchronously():
114-
nonlocal ack, request, response
114+
nonlocal response
115115
try:
116116
self.listener_start_handler.handle(
117117
request=request,

0 commit comments

Comments
 (0)