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