Skip to content

Commit c75b897

Browse files
committed
remove redundant variable, satisfy typescript
1 parent 3700847 commit c75b897

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/fetchers/updateTagValueNoLogIn.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function updateTagValueNoLogIn({
1919
}) {
2020
if (!newTagValue || !osmType || !osmId) {
2121
// if the request cannot be made at all, the user gets an error toast
22-
postErrorMessage();
22+
postErrorMessage?.();
2323
throw new Error("Missing or undefined parameters.");
2424
}
2525

@@ -48,6 +48,5 @@ export async function updateTagValueNoLogIn({
4848
throw new Error("Could not update");
4949
}
5050

51-
const text = response.text();
52-
return text;
51+
return response.text();
5352
}

0 commit comments

Comments
 (0)