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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor to fix lints. #5184

Merged
merged 3 commits into from Apr 7, 2019
Merged

refactor to fix lints. #5184

merged 3 commits into from Apr 7, 2019

Conversation

abhijeethp
Copy link
Contributor

This PR fixes the following lints :

1. refactor(launcher): removes unnecessary assignment

Removes unnecessary assignment of shortName @ line 58

2. refactor(runnerCli): convert switch to if-else

Converts the switch to an if-else as the switch statement is made of only 2 branches. 馃槃

lib/runnerCli.ts Outdated
break;
default:
throw new Error('command ' + m.command + ' is invalid');
if (m.command == 'run') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to use === instead of ==

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 馃槃

lib/launcher.ts Show resolved Hide resolved
@cnishina cnishina merged commit f2b6b49 into angular:master Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants