Skip to content

Commit 64a49c7

Browse files
committed
Update RestQuery.js
1 parent c579803 commit 64a49c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RestQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ function includePath(config, auth, response, path, restOptions = {}) {
866866
return set;
867867
}
868868
}
869-
if (i == keyPath.length - 1) {
869+
if (i + 1 === keyPath.length) {
870870
set.add(keyPath[i]);
871871
}
872872
return set;

0 commit comments

Comments
 (0)