From 47ec9950038c46e8efc992d662b6efab4cbb185c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 8 Apr 2022 10:04:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/Iteration.cpp | 2 +- src/ReadIterations.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Iteration.cpp b/src/Iteration.cpp index 0f68e17ddb..2e8d70d089 100644 --- a/src/Iteration.cpp +++ b/src/Iteration.cpp @@ -705,7 +705,7 @@ auto Iteration::beginStep(bool reread) -> BeginStepStatus { res.iterationsInOpenedStep = series.readGorVBased(false); } - catch(...) + catch (...) { IOHandler()->m_seriesStatus = oldStatus; throw; diff --git a/src/ReadIterations.cpp b/src/ReadIterations.cpp index 0db852e0d6..c4b6b1976d 100644 --- a/src/ReadIterations.cpp +++ b/src/ReadIterations.cpp @@ -182,7 +182,8 @@ SeriesIterator::nextIterationInStep(Iteration ¤tIteration) series.iterations[m_currentIteration].open(); try { - series.iterations[m_currentIteration].beginStep(/* reread = */ true); + series.iterations[m_currentIteration].beginStep( + /* reread = */ true); } catch (error::ReadError const &err) { @@ -214,8 +215,8 @@ SeriesIterator::nextStep(Iteration ¤tIteration) catch (error::ReadError const &err) { std::cerr << "[SeriesIterator] Cannot read iteration due to error " - "below, will skip it.\n" - << err.what() << std::endl; + "below, will skip it.\n" + << err.what() << std::endl; // Need to close the current step manually because there is no // iteration to close Parameter param;