Skip to content

Commit

Permalink
Remove redundant === true from conditional (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephfrazier authored and boopathi committed Feb 21, 2017
1 parent b51b2c4 commit c315cfd
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -2,8 +2,7 @@

function createRegExpLiteral(args, prettify, t) {
const evaluatedArgs = args.map((a) => a.evaluate());
if (!evaluatedArgs.every((a) => a.confident === true &&
typeof a.value === "string")) {
if (!evaluatedArgs.every((a) => a.confident && typeof a.value === "string")) {
return;
}
let pattern = (evaluatedArgs.length >= 1 &&
Expand Down

0 comments on commit c315cfd

Please sign in to comment.