Skip to content

Commit d983533

Browse files
pre-commit-ci[bot]franzpoeschel
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1fa6d2d commit d983533

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

include/openPMD/Datatype.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ namespace detail
230230
{
231231
return is_char_v<T>;
232232
}
233-
template<size_t N>
233+
template <size_t N>
234234
static constexpr bool call()
235235
{
236236
return false;

src/RecordComponent.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -922,14 +922,14 @@ void RecordComponent::loadChunk_impl(
922922
* Attention: Do NOT use operator==(), doesnt work properly on Windows!
923923
*/
924924
if (!isSame(dtype_requested, getDatatype()) && !constant())
925-
{
926-
std::string const data_type_str = datatypeToString(getDatatype());
927-
std::string const requ_type_str = datatypeToString(dtype_requested);
928-
std::string err_msg =
929-
"Type conversion during chunk loading not yet implemented! ";
930-
err_msg += "Data: " + data_type_str + "; Load as: " + requ_type_str;
931-
throw std::runtime_error(err_msg);
932-
}
925+
{
926+
std::string const data_type_str = datatypeToString(getDatatype());
927+
std::string const requ_type_str = datatypeToString(dtype_requested);
928+
std::string err_msg =
929+
"Type conversion during chunk loading not yet implemented! ";
930+
err_msg += "Data: " + data_type_str + "; Load as: " + requ_type_str;
931+
throw std::runtime_error(err_msg);
932+
}
933933

934934
auto dim = getDimensionality();
935935
auto [offset, extent, memorySelection] = std::move(cfg);

0 commit comments

Comments
 (0)