-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
singing.tsのsearchPhrasesをリファクタリング (#1850)
* change: i -> noteIndex * refactor: RENDERのgeneratePhraseHash引数を切り出す。foundPhrases.setに同じ構造があるため、再利用。 * refactor: if文で、ノートが重複していないかどうかをわかりやすく * change: hashParams -> generateHashParams * refactor: nullの場合も考慮してnextNoteStart変数を変更 * add: 処理内容をわかりやすくする(レビューの提案を反映) * 微調整 * 差分減らし * メインブランチのテストが落ちてたのでついでに修正 --------- Co-authored-by: Hiroshiba <[email protected]>
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 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