From: Carl Hetherington Date: Sat, 1 Oct 2022 10:22:10 +0000 (+0200) Subject: Cleanup: remove unnecessary if X-Git-Tag: v2.17.0~9 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=1a18ab415edffc7598e0983b4e632775b1775757 Cleanup: remove unnecessary if --- diff --git a/src/lib/film.cc b/src/lib/film.cc index d9f2b0fec..d5597b5a1 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -842,9 +842,7 @@ Film::isdcf_name (bool if_created_now) const } } - if (fixed_name.length() > 14) { - fixed_name = fixed_name.substr (0, 14); - } + fixed_name = fixed_name.substr(0, 14); isdcf_name += fixed_name;