Skip to content

Commit 9180e22

Browse files
committed
Update exception and disabling of lint rules
1 parent d50ba08 commit 9180e22

File tree

1 file changed

+3
-2
lines changed
  • lib/node_modules/@stdlib/bench/harness/lib/benchmark-class

1 file changed

+3
-2
lines changed

lib/node_modules/@stdlib/bench/harness/lib/benchmark-class/assert.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* eslint-disable no-invalid-this */
20+
1921
'use strict';
2022

2123
// MODULES //
@@ -33,7 +35,6 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' );
3335
* @param {Options} opts - options
3436
*/
3537
function assert( ok, opts ) {
36-
/* eslint-disable no-invalid-this, no-unused-vars */ // TODO: remove no-unused-vars once `err` is used
3738
var result;
3839
var err;
3940

@@ -53,7 +54,7 @@ function assert( ok, opts ) {
5354
}
5455
if ( !ok ) {
5556
result.error = opts.error || new Error( this.name );
56-
err = new Error( 'exception' );
57+
err = new Error( 'not implemented' ); // eslint-disable-line no-unused-vars
5758

5859
// TODO: generate an exception in order to locate the calling function (https://github.com/substack/tape/blob/master/lib/test.js#L215)
5960
}

0 commit comments

Comments
 (0)