diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-29 22:35:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-29 22:35:41 +0100 |
| commit | 1cdb9b09e634ddb9a79ef04966fb4e49912fd9b2 (patch) | |
| tree | aa7770eed38ff38239964684a7b6eff532a3f8d9 /src | |
| parent | 67b6a72175b272a98fd5ad1f7481bb2333853f6a (diff) | |
Remove pointless if.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/reel_writer.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index 1d5a16075..dddacd893 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -577,13 +577,10 @@ ReelWriter::create_reel_sound(shared_ptr<dcp::Reel> reel, list<ReferencedReelAss reel_asset->actual_duration(), period_duration ); - if (reel_asset->actual_duration() != period_duration) { - throw ProgrammingError( - __FILE__, __LINE__, - fmt::format("{} vs {}", reel_asset->actual_duration(), period_duration) - ); - } - + throw ProgrammingError( + __FILE__, __LINE__, + fmt::format("{} vs {}", reel_asset->actual_duration(), period_duration) + ); } reel->add(reel_asset); } |
