Skip to content

Commit 894e655

Browse files
committed
Clean code
1 parent dfe1134 commit 894e655

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/database/timer-database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class TimeDatabase {
184184
*
185185
* @param param condition
186186
*/
187-
public async select(param?: QueryParam): Promise<SiteInfo[]> {
187+
async select(param?: QueryParam): Promise<SiteInfo[]> {
188188
log("select:{param}", param)
189189
param = param || new QueryParam()
190190
const items = await this.refresh()

src/database/whitelist-database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class WhitelistDatabase {
1212
return new Promise(resolve => this.localStorage.set(obj, resolve))
1313
}
1414

15-
public selectAll(): Promise<string[]> {
15+
selectAll(): Promise<string[]> {
1616
return new Promise(resolve => this.localStorage.get(items => resolve(items[WHITELIST_KEY] || [])))
1717
}
1818

0 commit comments

Comments
 (0)