Skip to content

Commit

Permalink
Add typedef for load
Browse files Browse the repository at this point in the history
  • Loading branch information
lathonez committed Apr 30, 2017
1 parent 6268157 commit 105295a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/clickers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class ClickersService {
}

// initialise Ids from SQL storage
private initIds(load = true): Promise<{}> {
private initIds(load: boolean = true): Promise<{}> {
return this.storage.get('ids') // return the promise so we can chain initClickers
.then((rawIds: string) => {
if (!rawIds || !load) return [];
Expand Down

0 comments on commit 105295a

Please sign in to comment.