Skip to content

Commit

Permalink
Merge pull request #26 from rwwagner90/master
Browse files Browse the repository at this point in the history
Remove target from assertion to better align with `mut`
  • Loading branch information
pzuraq authored Aug 31, 2020
2 parents 881bd43 + 5143db6 commit e47270e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/helpers/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function set(positional, named) {

assert(
'you must pass a path to {{set}}. You can pass a path statically, as in `{{set this.foo}}`, or with the path argument dynamically, as in `{{set this path="foo"}}`',
Boolean(target) && (typeof path === 'string' && path.length > 0 || typeof path === 'symbol' || typeof path === 'number')
(typeof path === 'string' && path.length > 0 || typeof path === 'symbol' || typeof path === 'number')
);

return positional.length === 3
Expand Down

0 comments on commit e47270e

Please sign in to comment.