refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
14
home/ags/node_modules/eslint-plugin-promise/rules/lib/is-callback.js
generated
vendored
14
home/ags/node_modules/eslint-plugin-promise/rules/lib/is-callback.js
generated
vendored
|
|
@ -1,14 +0,0 @@
|
|||
'use strict'
|
||||
|
||||
const isNamedCallback = require('./is-named-callback')
|
||||
|
||||
function isCallback(node, exceptions) {
|
||||
const isCallExpression = node.type === 'CallExpression'
|
||||
// istanbul ignore next -- always invoked on `CallExpression`
|
||||
const callee = node.callee || {}
|
||||
const nameIsCallback = isNamedCallback(callee.name, exceptions)
|
||||
const isCB = isCallExpression && nameIsCallback
|
||||
return isCB
|
||||
}
|
||||
|
||||
module.exports = isCallback
|
||||
Loading…
Add table
Add a link
Reference in a new issue