Skip to content

Commit

Permalink
Pleasing ESLint (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C authored May 17, 2024
1 parent 829babb commit f1370a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
const UP_ARROW_KEYCODE = 38;
const DOWN_ARROW_KEYCODE = 40;

let FunctionalError;
let history_ = [];
let histpos_ = 0;

Expand Down Expand Up @@ -139,7 +138,7 @@ function Terminal() {
output( result );
} )
.catch( ( error ) => {
if ( error instanceof FunctionalError ) {
if ( error instanceof FunctionalError ) { // eslint-disable-line no-undef
output( error.message );
} else { // untyped = unexpected error
console.exception( error );
Expand Down

0 comments on commit f1370a9

Please sign in to comment.