Skip to content

Commit

Permalink
Remove unused lines in Reference
Browse files Browse the repository at this point in the history
  • Loading branch information
vonagam committed Feb 3, 2019
1 parent d02ff5e commit 6fdb16a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,9 @@ export default class Reference {
validateName(key);
let prefix = options.contextPrefix || '$';

if (typeof key === 'function') {
key = '.';
}

this.key = key.trim();
this.prefix = prefix;
this.isContext = this.key.indexOf(prefix) === 0;
this.isSelf = this.key === '.';

this.path = this.isContext ? this.key.slice(this.prefix.length) : this.key;
this._get = getter(this.path, true);
this.map = mapFn || (value => value);
Expand Down

0 comments on commit 6fdb16a

Please sign in to comment.