Run a minor code quality checker over the repo (#8524)
* Run a minor code quality checker over the repo Largely targeted at spelling of common words and misc code issues. * Update snapshots
This commit is contained in:
parent
89d7760f36
commit
548290b006
56 changed files with 72 additions and 72 deletions
|
@ -178,7 +178,7 @@ function getTextNodeValue(node: Node): string {
|
|||
if (nodeText.length !== 1) {
|
||||
return nodeText.replace(CARET_NODE_CHAR, "");
|
||||
} else {
|
||||
// only contains ZWS, which is ignored, so return emtpy string
|
||||
// only contains ZWS, which is ignored, so return empty string
|
||||
return "";
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -37,7 +37,7 @@ export function formatRange(range: Range, action: Formatting): void {
|
|||
range.trim();
|
||||
}
|
||||
|
||||
// Edgecase when just selecting whitespace or new line.
|
||||
// Edge case when just selecting whitespace or new line.
|
||||
// There should be no reason to format whitespace, so we can just return.
|
||||
if (range.length === 0) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue