Updated code generation
This commit is contained in:
@ -105,14 +105,6 @@ function generate (spec, common) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
${safeWords(name)}(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
${genRequiredChecks()}
|
${genRequiredChecks()}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user