[ox/oc] Remove redundant move in readOC

This commit is contained in:
Gary Talent 2021-04-17 14:06:15 -05:00
parent 21f40a8362
commit 49fb4d0f0b

View File

@ -199,7 +199,7 @@ template<typename T>
Result<std::unique_ptr<T>> readOC(const char *json) {
auto val = std::make_unique<T>();
oxReturnError(readOC(json, ox_strlen(json), val.get()));
return std::move(val);
return val;
}
}