Skip to content

Commit 1dda529

Browse files
committed
Remove further unnecessary check
1 parent 45f4133 commit 1dda529

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

src/RecordComponent.cpp

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -835,19 +835,15 @@ void RecordComponent::loadChunk(std::shared_ptr<T> data, Offset o, Extent e)
835835
* Ref. `if (constant())` branch.
836836
*/
837837
if (dtype != getDatatype() && !constant())
838-
if (!isSameInteger<T>(getDatatype()) &&
839-
!isSameFloatingPoint<T>(getDatatype()) &&
840-
!isSameComplexFloatingPoint<T>(getDatatype()) &&
841-
!isSameChar<T>(getDatatype()))
842-
{
843-
std::string const data_type_str = datatypeToString(getDatatype());
844-
std::string const requ_type_str =
845-
datatypeToString(determineDatatype<T>());
846-
std::string err_msg =
847-
"Type conversion during chunk loading not yet implemented! ";
848-
err_msg += "Data: " + data_type_str + "; Load as: " + requ_type_str;
849-
throw std::runtime_error(err_msg);
850-
}
838+
{
839+
std::string const data_type_str = datatypeToString(getDatatype());
840+
std::string const requ_type_str =
841+
datatypeToString(determineDatatype<T>());
842+
std::string err_msg =
843+
"Type conversion during chunk loading not yet implemented! ";
844+
err_msg += "Data: " + data_type_str + "; Load as: " + requ_type_str;
845+
throw std::runtime_error(err_msg);
846+
}
851847

852848
uint8_t dim = getDimensionality();
853849

0 commit comments

Comments
 (0)