Skip to content

Commit 44e165d

Browse files
Appease the linter
1 parent 830d0c3 commit 44e165d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/dynamic-param-interfaces.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ const flushParamInterfaces = (API, addToOutput) => {
112112
if (Array.isArray(paramProperty.type)) {
113113
paramProperty.type = paramProperty.type.map((paramPropertyType) => {
114114
if (paramPropertyType.typeName === 'Function' && paramPropertyType.parameters) {
115-
return Object.assign({}, paramPropertyType, { typeName: genMethodString(module.exports, param, paramProperty, paramProperty.parameters, paramProperty.returns, true) });
115+
return Object.assign({}, paramPropertyType, { typeName: utils.genMethodString(module.exports, param, paramProperty, paramProperty.parameters, paramProperty.returns, true) })
116116
}
117-
return paramPropertyType;
118-
});
117+
return paramPropertyType
118+
})
119119
}
120120
if (!Array.isArray(paramProperty.type) && paramProperty.type.toLowerCase() === 'function') {
121121
paramAPI.push(`${paramProperty.name}${utils.isOptional(paramProperty) ? '?' : ''}: ${utils.genMethodString(module.exports, param, paramProperty, paramProperty.parameters, paramProperty.returns, true)};`)

lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ const genMethodString = (paramInterfaces, module, moduleMethod, parameters, retu
153153
if (Array.isArray(param.type)) {
154154
param.type = param.type.map((paramType) => {
155155
if (paramType.typeName === 'Function' && param.parameters) {
156-
return Object.assign({}, paramType, { typeName: genMethodString(paramInterfaces, module, moduleMethod, param.parameters, param.returns) });
156+
return Object.assign({}, paramType, { typeName: genMethodString(paramInterfaces, module, moduleMethod, param.parameters, param.returns) })
157157
}
158-
return paramType;
158+
return paramType
159159
})
160160
}
161161
if (param.type === 'Function' && param.parameters) {

0 commit comments

Comments
 (0)