Skip to content

Commit a499bcb

Browse files
authored
fix: Eliminate needless ternary (#9217)
1 parent bf8c674 commit a499bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ export async function action({ request, params }) {
17291729
let formData = await request.formData();
17301730
return updateContact(params.contactId, {
17311731
favorite:
1732-
formData.get("favorite") === "true" ? true : false,
1732+
formData.get("favorite") === "true",
17331733
});
17341734
}
17351735

0 commit comments

Comments
 (0)