From a6a68a1ab0060e5b423d2306c45c4008ad813ef2 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Tue, 5 Mar 2024 12:50:09 +0100 Subject: [PATCH] Code-format --- FWCore/ParameterSet/bin/edmWriteConfigs.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/FWCore/ParameterSet/bin/edmWriteConfigs.cpp b/FWCore/ParameterSet/bin/edmWriteConfigs.cpp index c767fbe0520ec..8d97ef5729160 100644 --- a/FWCore/ParameterSet/bin/edmWriteConfigs.cpp +++ b/FWCore/ParameterSet/bin/edmWriteConfigs.cpp @@ -144,12 +144,11 @@ namespace { dst_path.push_back('\0'); int fd = mkstemp(&dst_path[0]); - if(fd != -1) { - path.assign(dst_path.begin(), dst_path.end() - 1); - f.open(path.c_str(), - std::ios_base::trunc | std::ios_base::out); - close(fd); - return true; + if (fd != -1) { + path.assign(dst_path.begin(), dst_path.end() - 1); + f.open(path.c_str(), std::ios_base::trunc | std::ios_base::out); + close(fd); + return true; } return false; }