Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix linting errors
  • Loading branch information
lrlna committed Dec 1, 2016
commit 70da42b938be86fcc12234ca27f4a5fbfa10702e
12 changes: 6 additions & 6 deletions test/parallel/test-timers-clear-null-does-not-throw-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ const assert = require('assert');
// This test makes sure clearing timers with
// 'null' or no input does not throw error

assert.doesNotThrow(() => { clearInterval(null)});
assert.doesNotThrow(() => { clearInterval(null);});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These arrow functions would be a bit cleaner without the braces, e.g. assert.doesNotThrow(() => clearInterval(null));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha!


assert.doesNotThrow(() => { clearInterval() });
assert.doesNotThrow(() => { clearInterval();});

assert.doesNotThrow(() => { clearTimeout(null) });
assert.doesNotThrow(() => { clearTimeout(null);});

assert.doesNotThrow(() => { clearTimeout() });
assert.doesNotThrow(() => { clearTimeout();});

assert.doesNotThrow(() => { clearInterval(null) });
assert.doesNotThrow(() => { clearInterval(null);});

assert.doesNotThrow(() => { clearInterval() });
assert.doesNotThrow(() => { clearInterval();});