From: Justin Wind Date: Fri, 10 Jun 2022 17:00:17 +0000 (-0700) Subject: remove duplicate code X-Git-Tag: v1.1.0~2 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cde5aaf728595e10c50041e8b6deafe53f6b3eda;p=squeep-lazy-property remove duplicate code --- diff --git a/index.js b/index.js index 7259810..672e684 100644 --- a/index.js +++ b/index.js @@ -31,8 +31,6 @@ const defaultAccessorDescriptor = defaultShape(null, { * @returns {Object} */ function descriptorFromDefault(defaultDescriptor, ...objs) { - const newObject = Object.create(defaultDataDescriptor); - Object.assign(newObject, ...objs); return Object.assign(Object.create(defaultDescriptor), ...objs); }