Skip to content

Commit

Permalink
refactor: remove unnecessary arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Jul 27, 2020
1 parent c6aa472 commit ec924d9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/internal/Scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ import { dateTimestampProvider } from "./scheduler/dateTimestampProvider";
*/
export class Scheduler implements SchedulerLike {

/**
* Note: the arrow function wrapper is to allow the TestScheduler to override
* the provider's implementation of now when in run mode.
* @nocollapse
*/
public static now: () => number = () => dateTimestampProvider.now();
public static now: () => number = dateTimestampProvider.now;

constructor(private SchedulerAction: typeof Action,
now: () => number = Scheduler.now) {
Expand Down

0 comments on commit ec924d9

Please sign in to comment.