Server : Apache System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 User : pragmatice ( 1003) PHP Version : 8.2.24 Disable Function : NONE Directory : /home/etherpad/node_modules/eslint-plugin-promise/rules/lib/ |
'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