Skip to content

Commit

Permalink
style: fix some code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
niinpatel committed Mar 22, 2019
1 parent 461c961 commit 18cb2a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 18cb2a8

Please sign in to comment.