Merge "Migrate from android::String isEmpty to empty" into main am: 8a21830735 am: 8f1eea8f9d am: 6df90de737

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2707853

Change-Id: I2a22339a4943e9e3e96a46055ecadfbb109df620
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-08-25 18:25:35 +00:00 committed by Automerger Merge Worker
commit 3dbb0cba6a

View file

@ -98,7 +98,7 @@ String8 sessionIdToString(const std::vector<uint8_t>& sessionId) {
for (auto it = sessionId.begin(); it != sessionId.end(); it++) {
result.appendFormat("%02x ", *it);
}
if (result.isEmpty()) {
if (result.empty()) {
result.append("(null)");
}
return result;