Skip to content

Commit 18e0711

Browse files
authored
Remove redundant awaits from formData examples (#12842)
1 parent 7a270cb commit 18e0711

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

contributors.yml

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@
279279
- skratchdot
280280
- smithki
281281
- soartec-lab
282+
- sorokya
282283
- sorrycc
283284
- souzasmatheus
284285
- soxtoby

docs/how-to/status.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function action({
1616
request,
1717
}: Route.ActionArgs) {
1818
let formData = await request.formData();
19-
let title = await formData.get("title");
19+
let title = formData.get("title");
2020
if (!title) {
2121
return data(
2222
{ message: "Invalid title" },

docs/start/framework/actions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function clientAction({
2323
request,
2424
}: Route.ClientActionArgs) {
2525
let formData = await request.formData();
26-
let title = await formData.get("title");
26+
let title = formData.get("title");
2727
let project = await someApi.updateProject({ title });
2828
return project;
2929
}
@@ -60,7 +60,7 @@ export async function action({
6060
request,
6161
}: Route.ActionArgs) {
6262
let formData = await request.formData();
63-
let title = await formData.get("title");
63+
let title = formData.get("title");
6464
let project = await fakeDb.updateProject({ title });
6565
return project;
6666
}

0 commit comments

Comments
 (0)