Skip to content

Commit be5bfa0

Browse files
committed
Fix clang-tidy errors
- //cuttlefish/host/commands/modem_simulator:modem_simulator_test_clang_tidy
1 parent bc8b14a commit be5bfa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/cvd/cuttlefish/host/commands/modem_simulator/unittest/service_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ModemServiceTest : public ::testing::Test {
135135
r_pos = commands.find('\r', pos);
136136
if (r_pos != std::string::npos) {
137137
auto command = commands.substr(pos, r_pos - pos);
138-
if (command.size() > 0) { // "\r\r" ?
138+
if (!command.empty()) { // "\r\r" ?
139139
LOG(DEBUG) << "AT< " << command;
140140
if (IsFinalResponseSuccess(command) || IsFinalResponseError(command)) {
141141
response.push_back(command);

0 commit comments

Comments
 (0)