Skip to content

Commit 88a9a97

Browse files
authored
Merge pull request #15650 from bekzod/fix-typo
[BUGFIX] remove typo in `UnboundReference`
2 parents 5c1c6f8 + ea4d5ee commit 88a9a97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ember-glimmer/lib/utils/references.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export class InternalHelperReference extends CachedReference {
398398
// @implements PathReference
399399
export class UnboundReference extends ConstReference {
400400
static create(value) {
401-
if (typeof value === 'object' && value !== null || typeof result === 'function') {
401+
if (typeof value === 'object' && value !== null) {
402402
return new UnboundReference(value);
403403
} else {
404404
return PrimitiveReference.create(value);

0 commit comments

Comments
 (0)