Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jul 31, 2024
1 parent 9952d67 commit a625be6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/channeldef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export type FieldName = string;
export type Field = FieldName | RepeatRef;

export function isRepeatRef(field: Field | any): field is RepeatRef {
return field && !isString(field) && hasKey(field, 'repeat');
return !isString(field) && hasKey(field, 'repeat');
}

/** @@hidden */
Expand Down
2 changes: 1 addition & 1 deletion src/compile/data/formatparse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function getImplicitFromFilterTransform(transform: FilterTransform) {
// FIXME: remove as any
val = (filter as any).range[0];
} else if (isFieldOneOfPredicate(filter)) {
val = (filter.oneOf ?? (filter as any)['in'])[0];
val = (filter.oneOf ?? (filter as any).in)[0];
} // else -- for filter expression, we can't infer anything

if (val) {
Expand Down

0 comments on commit a625be6

Please sign in to comment.