Skip to content

Commit 0009c5c

Browse files
author
Dan Wenzel
committed
Use the local includes function
1 parent d64cd7b commit 0009c5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function transform(file, api/*, options*/) {
200200
let globalEmberWithNestedProperties = [globalEmber];
201201
let uses = root.find(j.VariableDeclarator, (node) => {
202202
if (j.Identifier.check(node.init)) {
203-
if (globalEmberWithNestedProperties.includes(node.init.name)) {
203+
if (includes(globalEmberWithNestedProperties, node.init.name)) {
204204
// We've found an Ember global, or one of its nested properties.
205205
// Add it to the uses, and add its properties to the list of nested properties
206206
const identifierProperties = getIdentifierProperties(node);

0 commit comments

Comments
 (0)