simplify code

This commit is contained in:
tophf 2020-10-17 09:24:22 +03:00
parent 7966ce5bd3
commit ae2c53c2f0

View File

@ -557,7 +557,7 @@
const palette = new Map(); const palette = new Map();
let i = 0; let i = 0;
let nums; let nums;
cm.doc.eachLine(({markedSpans}) => { cm.eachLine(({markedSpans}) => {
++i; ++i;
if (!markedSpans) return; if (!markedSpans) return;
for (const {from, marker: m} of markedSpans) { for (const {from, marker: m} of markedSpans) {