lib/rules/array-callback-return.js
function (node) {
        if (funcInfo.shouldCheck) {
          funcInfo.hasReturn = true

          if (!node.argument) {
            context.report({
              node: node,
              message: 'Expected a return value'
            })
          }
        }
      }
function (node) {
        if (funcInfo.shouldCheck) {
          funcInfo.hasReturn = true

          if (!node.argument) {
            context.report({
              node: node,
              message: 'Expected a return value'
            })
          }
        }
      }
function ( node ) { if ( funcInfo . shouldCheck ) { funcInfo . hasReturn = true if ( ! node . argument ) { context . report ( { node : node , message : 'Expected a return value' } ) } } }
Checks the return statement is valid.
Checks the return statement is valid .