Skip to content

Commit

Permalink
Undo accidental change
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Dec 30, 2023
1 parent 5ca5cea commit f94571c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glass/src/libnt/native/cpp/NetworkTables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ void NetworkTablesModel::ValueSource::UpdateFromValue(
mpack_reader_destroy(&r);
} else if (wpi::starts_with(typeStr, "struct:")) {
auto structName = wpi::remove_prefix(typeStr, "struct:");
bool isArray = wpi::ends_with(structName, "[]");
bool isArray = structName.ends_with("[]");
if (isArray) {
structName = wpi::remove_suffix(structName, "[]");
}
Expand Down

0 comments on commit f94571c

Please sign in to comment.