Skip to content

Commit ed50b8d

Browse files
committed
Remove references to stores in comments
1 parent a358240 commit ed50b8d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/treetop/HistoryManager.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import { isBookmark } from './bookmarktreenode-utils';
22
import * as Treetop from './types';
33

44
/**
5-
* Class to initialize and manage updating last visit time stores for bookmarks.
5+
* Class to initialize and manage updating last visit times for bookmarks.
66
*/
77
export class HistoryManager {
88
private loaded = false;
99

1010
constructor(private readonly lastVisitTimeMap: Treetop.LastVisitTimeMap) {}
1111

1212
/**
13-
* Initialize default last visit time stores for all bookmark nodes.
13+
* Initialize default last visit time for all bookmark nodes.
1414
*/
1515
init(folderNodeMap: Treetop.FolderNodeMap): void {
1616
for (const folderNode of folderNodeMap.values()) {
@@ -23,7 +23,7 @@ export class HistoryManager {
2323
}
2424

2525
/**
26-
* Load history for all bookmarks and initialize last visit time stores.
26+
* Load history for all bookmarks and initialize last visit times.
2727
*/
2828
async loadHistory(folderNodeMap: Treetop.FolderNodeMap): Promise<void> {
2929
if (this.loaded) {
@@ -62,7 +62,7 @@ export class HistoryManager {
6262
}
6363

6464
/**
65-
* Reset all last visit time stores.
65+
* Reset all last visit times.
6666
*/
6767
unloadHistory(): void {
6868
for (const nodeId of this.lastVisitTimeMap.keys()) {
@@ -73,7 +73,7 @@ export class HistoryManager {
7373
}
7474

7575
/**
76-
* Create a last visit time store for a newly created bookmark node.
76+
* Create a last visit time for a newly created bookmark node.
7777
*/
7878
async handleBookmarkCreated(
7979
_id: string,
@@ -92,14 +92,14 @@ export class HistoryManager {
9292
}
9393

9494
/**
95-
* Delete the last visit time store for a removed bookmark.
95+
* Delete the last visit time for a removed bookmark.
9696
*/
9797
handleBookmarkRemoved(id: string): void {
9898
this.lastVisitTimeMap.delete(id);
9999
}
100100

101101
/**
102-
* Update the last visit time store for a modified bookmark.
102+
* Update the last visit time for a modified bookmark.
103103
*/
104104
async handleBookmarkChanged(
105105
id: string,
@@ -119,7 +119,7 @@ export class HistoryManager {
119119
}
120120

121121
/**
122-
* Update the last visit time store when the user visits a bookmarked URL.
122+
* Update the last visit time when the user visits a bookmarked URL.
123123
*/
124124
async handleVisited(result: chrome.history.HistoryItem): Promise<void> {
125125
// Update bookmark nodes that match the visited URL
@@ -133,8 +133,7 @@ export class HistoryManager {
133133
}
134134

135135
/**
136-
* Reset the last visit time stores when a page is removed from the browser
137-
* history.
136+
* Reset the last visit times when a page is removed from the browser history.
138137
*/
139138
async handleVisitRemoved(
140139
removed: Treetop.HistoryRemovedResult,

0 commit comments

Comments
 (0)