From 7d8d6104bcc5d7f37c50048aeb89a79a1d894a37 Mon Sep 17 00:00:00 2001 From: anders Date: Tue, 10 Sep 2019 14:50:07 -0500 Subject: [PATCH] remove spread syntax --- src/db-manifest.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/db-manifest.js b/src/db-manifest.js index 00e44b9..9e23168 100644 --- a/src/db-manifest.js +++ b/src/db-manifest.js @@ -3,13 +3,14 @@ const io = require('orbit-db-io') // Creates a DB manifest file and saves it in IPFS const createDBManifest = async (ipfs, name, type, accessControllerAddress, options) => { - const manifest = { + const manifest = Object.assign({ name: name, type: type, - accessController: path.join('/ipfs', accessControllerAddress), - // meta field is only added to manifest if options.meta is defined - ...(options.meta !== undefined ? { meta: options.meta } : {}) - } + accessController: path.join('/ipfs', accessControllerAddress) + }, + // meta field is only added to manifest if options.meta is defined + options.meta !== undefined ? { meta: options.meta } : {} + ) return io.write(ipfs, options.format || 'dag-cbor', manifest, options) }