Skip to content

Commit

Permalink
Change != to !==
Browse files Browse the repository at this point in the history
  • Loading branch information
t-zhangw committed Aug 6, 2020
1 parent 812704a commit 1cadf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/cmd/postprocessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function getChangedSchemas(repoPath: string) {
const status = await git.status(repo);
const changedSchemas: { path: string, isNew: boolean }[] = [];
for (const stat of status) {
if (stat.path.toString().split(path.sep).indexOf('schemas') != -1
if (stat.path.toString().split(path.sep).indexOf('schemas') !== -1
&& path.extname(stat.path) === '.json') {
if (stat.status !== 'modified' && stat.status !== 'new') {
throw new Error(`Undefined file status for '${stat.path}'.`);
Expand Down

0 comments on commit 1cadf60

Please sign in to comment.