@@ -21,7 +21,7 @@ module.exports = function (options) {
21
21
}
22
22
23
23
store . createWriteStream = function ( opts , cb ) {
24
- if ( typeof opts === 'string' ) opts = { key : opts }
24
+ if ( typeof opts === 'string' ) opts = { key : opts }
25
25
if ( opts . name ) opts . key = opts . name
26
26
if ( ! cb ) cb = noop
27
27
@@ -54,7 +54,7 @@ module.exports = function (options) {
54
54
}
55
55
56
56
store . createReadStream = function ( opts ) {
57
- if ( typeof opts === 'string' ) opts = { key : opts }
57
+ if ( typeof opts === 'string' ) opts = { key : opts }
58
58
if ( opts . name ) opts . key = opts . name
59
59
60
60
const readPath = normalisePath ( store . baseDir + opts . key )
@@ -72,7 +72,7 @@ module.exports = function (options) {
72
72
}
73
73
74
74
store . exists = function ( opts , cb ) {
75
- if ( typeof opts === 'string' ) opts = { key : opts }
75
+ if ( typeof opts === 'string' ) opts = { key : opts }
76
76
if ( opts . name ) opts . key = opts . name
77
77
if ( ! cb ) cb = noop
78
78
@@ -93,7 +93,7 @@ module.exports = function (options) {
93
93
}
94
94
95
95
store . remove = function ( opts , cb ) {
96
- if ( typeof opts === 'string' ) opts = { key : opts }
96
+ if ( typeof opts === 'string' ) opts = { key : opts }
97
97
if ( opts . name ) opts . key = opts . name
98
98
if ( ! cb ) cb = noop
99
99
0 commit comments