Cleanup: remove unnecessary if
authorCarl Hetherington <cth@carlh.net>
Sat, 1 Oct 2022 10:22:10 +0000 (12:22 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 1 Oct 2022 10:22:10 +0000 (12:22 +0200)
src/lib/film.cc

index d9f2b0fec46203c48cfb62e6a323fd05432dac67..d5597b5a12dfa49b13255fd49b42f7fd38a65977 100644 (file)
@@ -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;