diff --git a/eslint/rules/bad-text.js b/eslint/rules/bad-text.js index 770cee542..45e668470 100644 --- a/eslint/rules/bad-text.js +++ b/eslint/rules/bad-text.js @@ -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; } } ];