This is to please CodeQL's "Futile condition" check.
auto prefix = debug_dir.empty()
? output_obj
: debug_dir + util::to_absolute_path_no_drive(output_obj);
- if (!Util::create_dir(Util::dir_name(prefix))) {
- // Ignore since we can't handle an error in another way in this context. The
- // caller takes care of logging when trying to open the path for writing.
- }
+
+ // Ignore any error from create_dir since we can't handle an error in another
+ // way in this context. The caller takes care of logging when trying to open
+ // the path for writing.
+ Util::create_dir(Util::dir_name(prefix));
char timestamp[100];
const auto tm = Util::localtime(time_of_invocation);