Skip to content
This repository was archived by the owner on Aug 25, 2021. It is now read-only.

Refactor 20190625#299

Open
noscripter wants to merge 2 commits into2.xfrom
refactor_20190625
Open

Refactor 20190625#299
noscripter wants to merge 2 commits into2.xfrom
refactor_20190625

Conversation

@noscripter
Copy link
Collaborator

  • refactor: remove dead code
  • refactor: fix Ineffective parameter type

} else if (url && url instanceof URL) {
_url = urlToOptions(url);
} else {
_options = url;
Copy link
Member

Choose a reason for hiding this comment

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

I think it's not dead code

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Variable _options with null and undefined have the same effect for the following statement, so it's better to be removed. Just my 2 cents, up to your judgement.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants