Skip to content

Commit

Permalink
fix: Fixing no ops so linting is happier
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstenson committed Jul 21, 2019
1 parent 8118067 commit 764cb69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/timer-wheel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const SPANS = [

const SHIFTS = SPANS.slice(0, SPANS.length-1).map(span => 1 + Math.floor(Math.log(span - 1) * Math.LOG2E));

const NO_OP = () => {};
const NO_OP = () => false;

/**
* A timer wheel for efficiently managing a large amount of time based actions.
Expand Down
2 changes: 1 addition & 1 deletion test/timer-wheel.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TimerWheel } from '../src/timer-wheel';
import { Action } from '../src/action';

const NO_OP = () => {};
const NO_OP = () => false;

function counter(): { count: number, action: Action } {
let count = 0;
Expand Down

0 comments on commit 764cb69

Please sign in to comment.