refactor: server code (#2545)
+ Remove duplicated await + Replace some legacy codes with ES6 + Fix some of eslint problems
This commit is contained in:
1 parent
0a1f0ac9e3
commit
5ba36ee421
12 files changed
+27
-39
No files matched your search
@@ -73,13 +73,8 @@ module.exports = {
|
||||
continue
|
||||
}
|
||||
|
||||
var closeMarkerMatched = true
|
||||
for (i = 0; i < closeMarker.length; ++i) {
|
||||
if (closeMarker[i] !== state.src[start + i]) {
|
||||
closeMarkerMatched = false
|
||||
break
|
||||
}
|
||||
}
|
||||
const i = closeMarker.findIndex(item => item !== state.src[start + i])
|
||||
const closeMarkerMatched = i !== -1
|
||||
|
||||
if (!closeMarkerMatched) {
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user