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

Root: Suppress error message for saving empty bbsmenu.txt #1315

Merged

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Jan 6, 2024

Root: Suppress error message for saving empty bbsmenu.txt

BBSMENUのデータが無い場合は空データをbbsmenu.txtに保存しますが意図しないエラーメッセージが表示されるため修正して抑制します。

修正前も抑制のロジックを導入していましたが別のローカル変数と取り違えていました。

Rename local variables for Root::save_bbsmenu()

ローカル変数の名前が冗長で紛らわしいため短く変更します。
また、if文の初期化(if statement with initializer)を利用して変数のスコープを限定します。

関連のpull request: #1307

ma8ma added 2 commits January 6, 2024 22:32
BBSMENUのデータが無い場合は空データをbbsmenu.txtに保存しますが
意図しないエラーメッセージが表示されるため修正して抑制します。

修正前も抑制のロジックを導入していましたが別のローカル変数と
取り違えていました。
ローカル変数の名前が冗長で紛らわしいため短く変更します。
また、if文の初期化(if statement with initializer)を利用して
変数のスコープを限定します。
@ma8ma ma8ma added bug バグの追跡 refactoring コードの整理 (バグ修正でも機能変更でもない) labels Jan 6, 2024
@ma8ma ma8ma merged commit c47155a into master Jan 6, 2024
20 checks passed
@ma8ma ma8ma deleted the root-suppress-error-message-for-saving-empty-bbsmenu-txt branch January 6, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug バグの追跡 refactoring コードの整理 (バグ修正でも機能変更でもない)
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

1 participant