Skip to content

Commit 3a780a9

Browse files
Appease the linter
1 parent 948b17f commit 3a780a9

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
@@ -106,10 +106,10 @@ const flushParamInterfaces = (API, addToOutput) => {
106106
if (Array.isArray(paramProperty.type)) {
107107
paramProperty.type = paramProperty.type.map((paramPropertyType) => {
108108
if (paramPropertyType.typeName === 'Function' && paramPropertyType.parameters) {
109-
return Object.assign({}, paramPropertyType, { typeName: genMethodString(module.exports, param, paramProperty, paramProperty.parameters, paramProperty.returns, true) });
109+
return Object.assign({}, paramPropertyType, { typeName: utils.genMethodString(module.exports, param, paramProperty, paramProperty.parameters, paramProperty.returns, true) })
110110
}
111-
return paramPropertyType;
112-
});
111+
return paramPropertyType
112+
})
113113
}
114114
if (!Array.isArray(paramProperty.type) && paramProperty.type.toLowerCase() === 'function') {
115115
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)