We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when a variable is declared in the return param, it is implied that it will be returned, so a return statement is not necessary:
function getCircles(uint256[] calldata _ids) external view returns (Circle[] memory _circles) { _circles = new Circle[](_ids.length); for (uint256 i = 0; i < _ids.length; i++) { _circles[i] = circles[_ids[i]]; } return _circles; }
can be:
function getCircles(uint256[] calldata _ids) external view returns (Circle[] memory _circles) { _circles = new Circle[](_ids.length); for (uint256 i = 0; i < _ids.length; i++) { _circles[i] = circles[_ids[i]]; } }
The text was updated successfully, but these errors were encountered:
daopunk
RonTuretzky
bagelface
No branches or pull requests
when a variable is declared in the return param, it is implied that it will be returned, so a return statement is not necessary:
can be:
The text was updated successfully, but these errors were encountered: