提交 58f1b5a9 编写于 作者: M meganrogge

change return statement structure

上级 50f03d20
......@@ -81,10 +81,11 @@ export default class MarkdownSmartSelect implements vscode.SelectionRangeProvide
parentRange = currentRange;
}
}
if (!currentRange && parentRange) {
if (currentRange) {
return currentRange;
} else {
return parentRange;
}
return currentRange;
}
private async getHeaderSelectionRanges(document: vscode.TextDocument, position: vscode.Position): Promise<vscode.SelectionRange | undefined> {
......@@ -119,10 +120,11 @@ export default class MarkdownSmartSelect implements vscode.SelectionRangeProvide
}
index++;
}
if (!currentRange && parentRange) {
if (currentRange) {
return currentRange;
} else {
return parentRange;
}
return currentRange;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册