Skip to content

Commit 5615839

Browse files
remove unnecessary string interpolation
Co-authored-by: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 1f05135 commit 5615839

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/internal/repl/completion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,15 +731,15 @@ function includesProxiesOrGetters(expr, exprStr, evalFn, ctx, callback) {
731731

732732
if (astProp.type === 'Literal') {
733733
// We have something like `obj['foo'].x` where `x` is the literal
734-
return propHasGetterOrIsProxy(obj, `${astProp.value}`, cb);
734+
return propHasGetterOrIsProxy(obj, astProp.value, cb);
735735
}
736736

737737
if (
738738
astProp.type === 'Identifier' &&
739739
exprStr.at(astProp.start - 1) === '.'
740740
) {
741741
// We have something like `obj.foo.x` where `foo` is the identifier
742-
return propHasGetterOrIsProxy(obj, `${astProp.name}`, cb);
742+
return propHasGetterOrIsProxy(obj, astProp.name, cb);
743743
}
744744

745745
return evalFn(

0 commit comments

Comments
 (0)