Run a minor code quality checker over the repo (#8524)
* Run a minor code quality checker over the repo Largely targeted at spelling of common words and misc code issues. * Update snapshots
This commit is contained in:
parent
89d7760f36
commit
548290b006
56 changed files with 72 additions and 72 deletions
|
@ -91,7 +91,7 @@ export default abstract class BaseEventIndexManager {
|
|||
*
|
||||
* @param {MatrixEvent} ev The event that should be added to the index.
|
||||
* @param {IMatrixProfile} profile The profile of the event sender at the
|
||||
* time of the event receival.
|
||||
* time the event was received.
|
||||
*
|
||||
* @return {Promise} A promise that will resolve when the was queued up for
|
||||
* addition.
|
||||
|
|
|
@ -596,7 +596,7 @@ export default class EventIndex extends EventEmitter {
|
|||
continue;
|
||||
}
|
||||
|
||||
// If all events were already indexed we assume that we catched
|
||||
// If all events were already indexed we assume that we caught
|
||||
// up with our index and don't need to crawl the room further.
|
||||
// Let us delete the checkpoint in that case, otherwise push
|
||||
// the new checkpoint to be used by the crawler.
|
||||
|
@ -612,7 +612,7 @@ export default class EventIndex extends EventEmitter {
|
|||
this.crawlerCheckpoints.push(newCheckpoint);
|
||||
}
|
||||
} catch (e) {
|
||||
logger.log("EventIndex: Error durring a crawl", e);
|
||||
logger.log("EventIndex: Error during a crawl", e);
|
||||
// An error occurred, put the checkpoint back so we
|
||||
// can retry.
|
||||
this.crawlerCheckpoints.push(checkpoint);
|
||||
|
@ -797,7 +797,7 @@ export default class EventIndex extends EventEmitter {
|
|||
// to get our events in the BACKWARDS direction but populate them in the
|
||||
// forwards direction.
|
||||
// This needs to happen because a fill request might come with an
|
||||
// exisitng timeline e.g. if you close and re-open the FilePanel.
|
||||
// existing timeline e.g. if you close and re-open the FilePanel.
|
||||
if (fromEvent === null) {
|
||||
matrixEvents.reverse();
|
||||
direction = direction == EventTimeline.BACKWARDS ? EventTimeline.FORWARDS: EventTimeline.BACKWARDS;
|
||||
|
|
|
@ -67,7 +67,7 @@ export class EventIndexPeg {
|
|||
/**
|
||||
* Initialize the event index.
|
||||
*
|
||||
* @returns {boolean} True if the event index was succesfully initialized,
|
||||
* @returns {boolean} True if the event index was successfully initialized,
|
||||
* false otherwise.
|
||||
*/
|
||||
async initEventIndex() {
|
||||
|
@ -118,7 +118,7 @@ export class EventIndexPeg {
|
|||
}
|
||||
|
||||
/**
|
||||
* Check if event indexing support is installed for the platfrom.
|
||||
* Check if event indexing support is installed for the platform.
|
||||
*
|
||||
* Event indexing might require additional optional modules to be installed,
|
||||
* this tells us if those are installed. Note that this should only be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue