Skip to content

Commit 45e6ef1

Browse files
author
Philemon Benner
committed
fix reading twice in internal::Read
1 parent 235b2d5 commit 45e6ef1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

include/kvdb/db.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ auto Read(const std::string& val) -> std::optional<T> {
4444
} else if constexpr (std::is_integral<_T>()) {
4545
return FromChars<T>(val);
4646
} else {
47-
auto result = rfl::json::read<T>(val);
4847
if (auto result = rfl::json::read<T>(val); result) {
4948
return result.value();
5049
} else {

0 commit comments

Comments
 (0)