Skip to content

Commit 0fb7c21

Browse files
committed
style: fix some code style issues
1 parent 9f06ade commit 0fb7c21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mfs.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function (options) {
2121
}
2222

2323
store.createWriteStream = function (opts, cb) {
24-
if (typeof opts === 'string') opts = {key: opts}
24+
if (typeof opts === 'string') opts = { key: opts }
2525
if (opts.name) opts.key = opts.name
2626
if (!cb) cb = noop
2727

@@ -54,7 +54,7 @@ module.exports = function (options) {
5454
}
5555

5656
store.createReadStream = function (opts) {
57-
if (typeof opts === 'string') opts = {key: opts}
57+
if (typeof opts === 'string') opts = { key: opts }
5858
if (opts.name) opts.key = opts.name
5959

6060
const readPath = normalisePath(store.baseDir + opts.key)
@@ -72,7 +72,7 @@ module.exports = function (options) {
7272
}
7373

7474
store.exists = function (opts, cb) {
75-
if (typeof opts === 'string') opts = {key: opts}
75+
if (typeof opts === 'string') opts = { key: opts }
7676
if (opts.name) opts.key = opts.name
7777
if (!cb) cb = noop
7878

@@ -93,7 +93,7 @@ module.exports = function (options) {
9393
}
9494

9595
store.remove = function (opts, cb) {
96-
if (typeof opts === 'string') opts = {key: opts}
96+
if (typeof opts === 'string') opts = { key: opts }
9797
if (opts.name) opts.key = opts.name
9898
if (!cb) cb = noop
9999

0 commit comments

Comments
 (0)