_loop=function _loop(){var node=_step3.value;context.report({node:node,loc:node.loc,message:"Unnecessary return statement.",fix:function fix(fixer){if(isRemovable(node)){// Extend the replacement range to include the
// entire function to avoid conflicting with
// no-else-return.
// https://github.com/eslint/eslint/issues/8026
return new FixTracker(fixer,context.getSourceCode()).retainEnclosingFunction(node).remove(node);}return null;}});}
Removes the return statements on the current segments from the useless
return statement list.

This function will be called at every statement except FunctionDeclaration,
BlockStatement, and BreakStatement.

- FunctionDeclarations are always executed whether it's returned or not.
- BlockStatements do nothing.
- BreakStatements go the next merely.

@returns {void}