Skip to content

Commit 09c7f2c

Browse files
committed
Remove unnecessary semi-colons from code snippets in docs
1 parent 8a0a3de commit 09c7f2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/_basic/opening_modals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Read more about modal composition in the <a href="https://api.slack.com/surfaces
2020
@app.shortcut("open_modal")
2121
def open_modal(ack, body, client):
2222
# Acknowledge the command request
23-
ack();
23+
ack()
2424
# Call views_open with the built-in client
2525
client.views_open(
2626
# Pass a valid trigger_id within 3 seconds of receiving it

docs/_basic/responding_actions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ The second way to respond to actions is using `respond()`, which is a utility to
1818
@app.action("approve_button")
1919
def approve_request(ack, say):
2020
# Acknowledge action request
21-
ack();
22-
say("Request approved 👍");
21+
ack()
22+
say("Request approved 👍")
2323
```
2424

2525
<details class="secondary-wrapper">
@@ -37,7 +37,7 @@ Since `respond()` is a utility for calling the `response_url`, it behaves in the
3737
# Listens to actions triggered with action_id of “user_select”
3838
@app.action("user_select")
3939
def select_user(ack, action, respond):
40-
ack();
40+
ack()
4141
respond(f"You selected <@{action['selected_user']}>")
4242
```
4343

0 commit comments

Comments
 (0)