From 18cb2a87bd47c1633d5b5c8fc9cc0152c9120944 Mon Sep 17 00:00:00 2001 From: Nitin Patel Date: Fri, 22 Mar 2019 18:59:26 +0530 Subject: [PATCH] style: fix some code style issues --- src/mfs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mfs.js b/src/mfs.js index fea8bda..9df00ff 100644 --- a/src/mfs.js +++ b/src/mfs.js @@ -21,7 +21,7 @@ module.exports = function (options) { } store.createWriteStream = function (opts, cb) { - if (typeof opts === 'string') opts = {key: opts} + if (typeof opts === 'string') opts = { key: opts } if (opts.name) opts.key = opts.name if (!cb) cb = noop @@ -54,7 +54,7 @@ module.exports = function (options) { } store.createReadStream = function (opts) { - if (typeof opts === 'string') opts = {key: opts} + if (typeof opts === 'string') opts = { key: opts } if (opts.name) opts.key = opts.name const readPath = normalisePath(store.baseDir + opts.key) @@ -72,7 +72,7 @@ module.exports = function (options) { } store.exists = function (opts, cb) { - if (typeof opts === 'string') opts = {key: opts} + if (typeof opts === 'string') opts = { key: opts } if (opts.name) opts.key = opts.name if (!cb) cb = noop @@ -93,7 +93,7 @@ module.exports = function (options) { } store.remove = function (opts, cb) { - if (typeof opts === 'string') opts = {key: opts} + if (typeof opts === 'string') opts = { key: opts } if (opts.name) opts.key = opts.name if (!cb) cb = noop