Skip to content

fix/many-returns-smell#54

Open
Ghee-clarified-butter wants to merge 1 commit into
CMU-17313Q:mainfrom
Ghee-clarified-butter:Ghee-project1b
Open

fix/many-returns-smell#54
Ghee-clarified-butter wants to merge 1 commit into
CMU-17313Q:mainfrom
Ghee-clarified-butter:Ghee-project1b

Conversation

@Ghee-clarified-butter
Copy link
Copy Markdown

I refactored src/user/settings.js to simplify the flow by reducing multiple early returns, consolidating conditionals, and extracting small helpers and putting them outside of the "module" scope; behavior is preserved, validation order is unchanged, and the code is now easier to read and maintain;

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 17507089670

Details

  • 63 of 64 (98.44%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 78.532%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/user/settings.js 63 64 98.44%
Totals Coverage Status
Change from base Build 17472903245: 0.003%
Covered Lines: 24698
Relevant Lines: 29611

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants