Use destructre

This commit is contained in:
Matt Bierner
2018-05-01 11:08:59 -07:00
parent 245155d161
commit 9370ce97b2

View File

@@ -81,9 +81,7 @@ class SyncedBuffer {
return;
}
for (const event of events) {
const range = event.range;
const text = event.text;
for (const { range, text } of events) {
const args: Proto.ChangeRequestArgs = {
file: filePath,
line: range.start.line + 1,