From c13c20e6841c0fc8342ec8bca38d265c9b69f819 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:28:29 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/IO/ADIOS/ADIOS2IOHandler.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/IO/ADIOS/ADIOS2IOHandler.cpp b/src/IO/ADIOS/ADIOS2IOHandler.cpp index 97ade042a2..839f59dd03 100644 --- a/src/IO/ADIOS/ADIOS2IOHandler.cpp +++ b/src/IO/ADIOS/ADIOS2IOHandler.cpp @@ -68,17 +68,17 @@ namespace openPMD #if openPMD_HAVE_ADIOS2 - std::optional joinedDimension(adios2::Dims const &dims) +std::optional joinedDimension(adios2::Dims const &dims) +{ + for (size_t i = 0; i < dims.size(); ++i) { - for (size_t i = 0; i < dims.size(); ++i) + if (dims[i] == adios2::JoinedDim) { - if (dims[i] == adios2::JoinedDim) - { - return i; - } + return i; } - return std::nullopt; } + return std::nullopt; +} #if openPMD_HAVE_MPI