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

Refactor 20190625 #299

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from
Open

Refactor 20190625 #299

wants to merge 2 commits into from

Conversation

noscripter
Copy link
Collaborator

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

@@ -45,7 +45,6 @@ export class HttpClientPatcher extends Patcher {
} 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
2 participants