Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 846 Bytes

Named return variables.md

File metadata and controls

26 lines (22 loc) · 846 Bytes

There is an inconsistent use of named return variables across the entire codebase.

Recommendation:

Consider removing all named return variables, explicitly declaring them as local variables in the body of the function, and adding the necessary explicit return statements where appropriate.

This should favor both explicitness and readability of the project.


Slide Screenshot

181.jpg


Slide Text

  • OpenZeppelin Audit HoldeFi Finding N06
  • Readability
  • Named Returns
  • Inconsistent Use
  • Remove Named Returns
  • Explicit Returns

References


Tags