MatrixChat: Add some missing semicolons.

pull/21833/head
Damir Jelić 2019-10-18 16:36:31 +02:00
parent 64061173e1
commit 2c5565e502
1 changed files with 4 additions and 3 deletions

View File

@ -2130,13 +2130,13 @@ export default createReactClass({
checkpoint.roomId, checkpoint.token, 100, checkpoint.roomId, checkpoint.token, 100,
checkpoint.direction); checkpoint.direction);
} catch (e) { } catch (e) {
console.log("Seshat: Error crawling events:", e) console.log("Seshat: Error crawling events:", e);
this.crawlerChekpoints.push(checkpoint); this.crawlerChekpoints.push(checkpoint);
continue continue
} }
if (res.chunk.length === 0) { if (res.chunk.length === 0) {
console.log("Seshat: Done with the checkpoint", checkpoint) console.log("Seshat: Done with the checkpoint", checkpoint);
// We got to the start/end of our timeline, lets just // We got to the start/end of our timeline, lets just
// delete our checkpoint and go back to sleep. // delete our checkpoint and go back to sleep.
await platform.removeCrawlerCheckpoint(checkpoint); await platform.removeCrawlerCheckpoint(checkpoint);
@ -2239,7 +2239,8 @@ export default createReactClass({
// Let us delete the checkpoint in that case, otherwise push // Let us delete the checkpoint in that case, otherwise push
// the new checkpoint to be used by the crawler. // the new checkpoint to be used by the crawler.
if (eventsAlreadyAdded === true && newCheckpoint.fullCrawl !== true) { if (eventsAlreadyAdded === true && newCheckpoint.fullCrawl !== true) {
console.log("Seshat: Checkpoint had already all events added, stopping the crawl", checkpoint); console.log("Seshat: Checkpoint had already all events",
"added, stopping the crawl", checkpoint);
await platform.removeCrawlerCheckpoint(newCheckpoint); await platform.removeCrawlerCheckpoint(newCheckpoint);
} else { } else {
this.crawlerChekpoints.push(newCheckpoint); this.crawlerChekpoints.push(newCheckpoint);