Skip to content

Commit 2d77d3c

Browse files
committed
chore: don't stringify path
1 parent 2d7d4fe commit 2d77d3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/assertion/assertPathExists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function assertPathExists<Input extends object, InputPath extends string
2424
throw new Error(`object path (${path}) does not exist on input`);
2525
}
2626

27-
if (predicate && !predicate(get(input, `${path}`))) {
27+
if (predicate && !predicate(get(input, path))) {
2828
throw new Error(`object path (${path}) failed predicate check`);
2929
}
3030
}

0 commit comments

Comments
 (0)