mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
ContainsKey: Compare to nullptr.
This is a style change, not a functional change.
This commit is contained in:
@@ -207,7 +207,7 @@ bool NetworkTable::ContainsKey(StringRef key) const {
|
||||
llvm::SmallString<128> path(m_path);
|
||||
path += PATH_SEPARATOR_CHAR;
|
||||
path += key;
|
||||
return nt::GetEntryValue(path) ? true : false;
|
||||
return nt::GetEntryValue(path) != nullptr;
|
||||
}
|
||||
|
||||
bool NetworkTable::ContainsSubTable(StringRef key) const {
|
||||
|
||||
Reference in New Issue
Block a user