mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
chore: optimized code
This commit is contained in:
@@ -28,10 +28,6 @@ async function testRename(value: string, newName: string, expectedDocContent: st
|
||||
assert.fail('No workspace edits');
|
||||
}
|
||||
|
||||
if (!workspaceEdit || !workspaceEdit.changes) {
|
||||
assert.fail('No workspace edits');
|
||||
}
|
||||
|
||||
const edits = workspaceEdit.changes[document.uri.toString()];
|
||||
if (!edits) {
|
||||
assert.fail(`No edits for file at ${document.uri.toString()}`);
|
||||
|
||||
Reference in New Issue
Block a user