Skip to content

Commit

Permalink
remove unnecessary parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Yosshi999 committed Oct 26, 2024
1 parent 6e41b94 commit 6620df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/voicevox_core/src/synthesizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ pub(crate) mod blocking {
}
// マージンがデータからはみ出さないことを保証
// cf. https://github.com/VOICEVOX/voicevox_core/pull/854#discussion_r1803691291
if (MARGIN > audio.padding_frame_length + clipped_start
|| MARGIN > audio.padding_frame_length + (audio.frame_length - clipped_end))
if MARGIN > audio.padding_frame_length + clipped_start
|| MARGIN > audio.padding_frame_length + (audio.frame_length - clipped_end)
{
return Err(ErrorRepr::RunModel(anyhow::anyhow!(
"Validation error: Too short padding for input"
Expand Down

0 comments on commit 6620df5

Please sign in to comment.