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

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 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