docs: function checkLastSegment (node) {
        if (funcInfo.shouldCheck &&
          funcInfo.codePath.currentSegments.some(isReachable)
        ) {
          context.report({
            node: node,
            loc: getLocation(node, context.getSourceCode()).loc.start,
            message: funcInfo.hasReturn
              ? 'Expected to return a value at the end of this function'
              : 'Expected to return a value in this function'
          })
        }
      }