formatting

This commit is contained in:
John
2023-10-14 16:24:46 +02:00
parent 5e2509b60c
commit 4c453a2354
2 changed files with 12 additions and 5 deletions
+2 -1
View File
@@ -1095,9 +1095,10 @@ result_t MainLoop::executeWrite(const vector<string>& args, const string levels,
if (!message->isWrite()) {
return RESULT_ERR_INVALID_ARG;
}
if (circuit.length() > 0 && circuit != message->getCircuit()) {
if (!circuit.empty() && circuit != message->getCircuit()) {
return RESULT_ERR_INVALID_ARG; // non-matching circuit
}
// send message
SlaveSymbolString slave;
ret = m_protocol->sendAndWait(master, &slave);