Skip to content
New issue

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

Refactoring: removed references to routeManager global variable from RouteManager … #653

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

ericleponner
Copy link
Collaborator

Description:

Changes below are refactoring. No semantic change.

Many methods from RouteManager class make reference to routeManager global variable.
They should refer to this.

Doing this uncovers a latent issue in RouteManager.selectedNetwork : this computed value uses this to initialize itself which is bad because RouteManager instance is not yet constructed (and thus this.router is undefined, and thus it breaks…).

…methods.

Signed-off-by: Eric Le Ponner <eric.leponner@icloud.com>
@github-actions
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 79.72% 6175/7746
🟡 Branches 61.11% 2585/4230
🟡 Functions 76.55% 1188/1552
🟡 Lines 79.69% 5828/7313

Test suite run success

331 tests passing in 75 suites.

Report generated by 🧪jest coverage report action from 0d16d94

@sonarcloud
Copy link

sonarcloud bot commented Jun 30, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@svienot svienot merged commit 008b546 into main Jun 30, 2023
6 of 7 checks passed
@svienot svienot deleted the refactoring branch June 30, 2023 14:37
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