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

[project-s] state.scoreからundefinedを消す #1622

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

Hiroshiba
Copy link
Member

@Hiroshiba Hiroshiba commented Oct 25, 2023

内容

型を簡単にできそうだったのでやってみました。
state.score?.hoge ?? fugaとなっているところをundefined考慮しない形にできそうだったのですが、とりあえずundefinedを省いただけにしました。

関連 Issue

ref VOICEVOX/voicevox_project#15

その他

ついでにsetupでnullを返すとワーニングが出るっぽいのでそちらも変更しておきました。

@Hiroshiba Hiroshiba requested a review from a team as a code owner October 25, 2023 18:04
@Hiroshiba Hiroshiba requested review from y-chan and removed request for a team and y-chan October 25, 2023 18:04
return null;
return {};
Copy link
Member Author

Choose a reason for hiding this comment

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

ワーニング除去用のついでの変更です!

Copy link
Contributor

@sigprogramming sigprogramming left a comment

Choose a reason for hiding this comment

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

ありがとうございます!LGTMです!
undefinedのチェックを行っているところも後で修正したいと思います…!

@Hiroshiba
Copy link
Member Author

マージします!

@Hiroshiba Hiroshiba merged commit 0def6f0 into VOICEVOX:project-s Oct 26, 2023
@Hiroshiba Hiroshiba deleted the remove-undefineable-score branch October 26, 2023 14:24
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

Successfully merging this pull request may close these issues.

2 participants