Skip to content

Commit

Permalink
remove extra else, #943
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed May 8, 2020
1 parent 3307259 commit 73fb1ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eslint/rules/bad-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ module.exports = function( context ) {
if ( line.trim().indexOf( 'export default' ) === 0 && line.indexOf( '.register(' ) >= 0 ) {
return false;
}
else {
return true;
}
return true;
}
}
];
Expand Down

0 comments on commit 73fb1ad

Please sign in to comment.