Skip to content

Commit

Permalink
Ensure isPureAnnotated returns a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism authored and aminmarashi committed Mar 17, 2018
1 parent dce31b4 commit e845a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-helper-annotate-as-pure/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as t from "@babel/types";
const PURE_ANNOTATION = "#__PURE__";

const isPureAnnotated = ({ leadingComments }) =>
leadingComments &&
!!leadingComments &&
leadingComments.some(comment => /[@#]__PURE__/.test(comment.value));

export default function annotateAsPure(pathOrNode) {
Expand Down

0 comments on commit e845a4a

Please sign in to comment.