Skip to content

Commit

Permalink
refactor to use includes instead of indexOf
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrown committed Apr 22, 2021
1 parent 5be90ca commit 13e23f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/packageManager/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { FeedFactory } from './feeds/feedFactory';
const API_ROOT = '/api';

const hasSchema = (c) => {
return c.includesSchema || c.keywords?.indexOf('msbot-component') >= 0;
return c.includesSchema || c.keywords?.includes('msbot-component');
};

const isAdaptiveComponent = (c) => {
Expand Down

0 comments on commit 13e23f3

Please sign in to comment.