Skip to content

report: remove unnecessary return in setters

Rodrigo Muino Tomonari requested to merge github/fork/Trott/useless-return into master

Barring shenanigans such as using Object.getOwnPropertyDescriptor(), return values from a setter function will always be inaccessible. Remove the return statements as they can be misleading, suggesting that the return value is accessible and perhaps used somewhere.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading