Skip to content

Commit

Permalink
added braces to conditional statements
Browse files Browse the repository at this point in the history
Update #548
  • Loading branch information
eugenwintersberger committed Aug 9, 2022
1 parent f33599b commit 4b888d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/h5cpp/datatype/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,15 @@ template<typename T>
const Datatype & DatatypeHolder::get(const T & v)
{
auto & type = hdf5::datatype::get(v);
if(static_cast<hid_t>(type))
if(static_cast<hid_t>(type))
{
return type;
}

if (!static_cast<hid_t>(instance))
if (!static_cast<hid_t>(instance))
{
instance = hdf5::datatype::create(v);
}
return instance;
}

Expand Down

0 comments on commit 4b888d1

Please sign in to comment.