Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: remove duplicate code #271

Merged
merged 1 commit into from
Jun 26, 2021

Conversation

jjangga0214
Copy link
Contributor

  1. rawRequest can be reused in request
  2. rawRequest returns Promise<{ data: T; extensions?: any; headers: Dom.Headers; status: number }> instead of Promise<{ data?: T; extensions?: any; headers: Dom.Headers; status: number }> (difference between data?: T and data: T). data cannot be undefined, as it'd be guarenteed by the spec.

@jasonkuhrt
Copy link
Member

Please rebase

@jjangga0214 jjangga0214 force-pushed the refactor/rm-duplicate-1 branch from ec958df to 28db936 Compare June 23, 2021 02:43
@jjangga0214
Copy link
Contributor Author

@jasonkuhrt Done :)

@renatorib
Copy link

Oh lord, thanks!!

@jasonkuhrt
Copy link
Member

Will look at this soon!

Copy link
Member

@jasonkuhrt jasonkuhrt left a comment

Choose a reason for hiding this comment

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

ty!

@jasonkuhrt jasonkuhrt changed the title refactor(index): remove duplicate code refactor: remove duplicate code Jun 26, 2021
@jasonkuhrt jasonkuhrt merged commit c544c5f into graffle-js:master Jun 26, 2021
@jjangga0214 jjangga0214 deleted the refactor/rm-duplicate-1 branch January 31, 2022 06:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants