Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

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 😄

@cnishina cnishina merged commit f2b6b49 into angular:master Apr 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants