Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

コードが重複している部分を減らす #6

Open
MnyaCat opened this issue Feb 27, 2023 · 0 comments
Open

コードが重複している部分を減らす #6

MnyaCat opened this issue Feb 27, 2023 · 0 comments

Comments

@MnyaCat
Copy link
Owner

MnyaCat commented Feb 27, 2023

1. ヘッダーの取得、GETメソッド、JsonMapへのパース

final header = await getRefreshedHeader();
final response = await innerClient.get(url, headers: header);
final jsonResponse = parse(response);

この部分が重複している。プライベート関数を作って、そこにまとめる。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant