Skip to content

Commit c1d8f31

Browse files
committed
Fix inverted null check in getPossibleTypes
1 parent d8edb04 commit c1d8f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Introspection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ std::optional<std::vector<std::shared_ptr<object::Type>>> Type::getPossibleTypes
178178
result->erase(std::remove_if(result->begin(),
179179
result->end(),
180180
[](const auto& entry) noexcept {
181-
return entry != nullptr;
181+
return entry == nullptr;
182182
}),
183183
result->cend());
184184

0 commit comments

Comments
 (0)