Skip to content

Commit

Permalink
Merge pull request #53 from supertong/path-not-change
Browse files Browse the repository at this point in the history
return false when path is not changed
  • Loading branch information
JamesMessinger authored Oct 12, 2017
2 parents f82aeef + 93054f4 commit 377a5d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pointer.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ function resolveIf$Ref(pointer, options) {
// This JSON reference "extends" the resolved value, rather than simply pointing to it.
// So the resolved path does NOT change. Just the value does.
pointer.value = $Ref.dereference(pointer.value, resolved.value);
return false;
}
else {
// Resolve the reference
Expand Down

0 comments on commit 377a5d9

Please sign in to comment.