Skip to content

Commit

Permalink
fix: remove redundant type check
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 10, 2019
1 parent d90b578 commit 58592e3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils/match/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ export class Match {
const data = mapToDict<unknown>(val);

for (const rule of this.rules) {
if (!has(data, rule.key)) {
results.errors.push(rule.key);
results.matched = false;
continue;
}

const value = get(data, rule.key);
if (!isString(value)) {
results.errors.push(rule.key);
Expand Down

0 comments on commit 58592e3

Please sign in to comment.