Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
把 callback hell 改成比較易讀的 async/await 寫法
這邊要特別注意的不是 typescript 語法一類的,而是我先改了程式。 這次我的目標是在功能不變的前提下改變寫法,所以測試是不能先動的。測試不變, 那不管怎麼改,只要測試能過,理論上功能就不會有變化。當然這前提是該測的通 通要測到啦w
- Loading branch information
Showing
2 changed files
with
51 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters