Skip to content

Commit

Permalink
Allow an undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
corasaurus-hex committed Mar 20, 2022
1 parent bf2696f commit 3ab4ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calva-fmt/src/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function formatRangeEdits(
const cursor = mirroredDoc.getTokenCursor(startIndex);
if (!cursor.withinString()) {
const rangeTuple: number[] = [startIndex, endIndex];
const newText: string = await _formatRange(
const newText: string | undefined = await _formatRange(
text,
document.getText(),
rangeTuple,
Expand Down

0 comments on commit 3ab4ccb

Please sign in to comment.