Skip to content

Commit c0a4758

Browse files
committed
remove todo. fix linter
1 parent d97036f commit c0a4758

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/realm/object-store/c_api/error.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ErrorStorage::ErrorStorage(std::exception_ptr ptr) noexcept
1616
: m_err(none)
1717
, m_message_buf()
1818
, m_usercode_error(nullptr)
19-
2019
{
2120
assign(std::move(ptr));
2221
}
@@ -73,7 +72,7 @@ bool ErrorStorage::operator==(const ErrorStorage& other) const noexcept
7372
else if (!m_err && !other.m_err) {
7473
return true;
7574
}
76-
return m_err->error == other.m_err->error && m_message_buf == other.m_message_buf; // && m_usercode_error == other.m_usercode_error; //TODO: should we compare the usercode_error here
75+
return m_err->error == other.m_err->error && m_message_buf == other.m_message_buf;
7776
}
7877

7978
void ErrorStorage::assign(std::exception_ptr eptr) noexcept

0 commit comments

Comments
 (0)