summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-01 12:22:10 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-01 12:22:10 +0200
commit1a18ab415edffc7598e0983b4e632775b1775757 (patch)
treef4a97e12c8c9ea683b1feac820f368bdac2a6200
parentff531ff611c0446906cc5b122cc4f7cec329d2f2 (diff)
Cleanup: remove unnecessary if
-rw-r--r--src/lib/film.cc4
1 files changed, 1 insertions, 3 deletions
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;