Remove an useless check

This commit is contained in:
Mattia Codato 2020-08-05 16:14:57 +02:00
parent 7474ab6de5
commit df2b82f7fe
1 changed files with 5 additions and 10 deletions

View File

@ -654,17 +654,12 @@ Value ClusterEvents::ExecuteCommandAPIHandler(const MessageOrigin::Ptr& origin,
executedParams->Set("start", now);
executedParams->Set("end", now);
if (origin->IsLocal()) {
ClusterEvents::ExecutedCommandAPIHandler(origin, executedParams);
} else {
Dictionary::Ptr executedMessage = new Dictionary();
executedMessage->Set("jsonrpc", "2.0");
executedMessage->Set("method", "event::ExecutedCommand");
executedMessage->Set("params", executedParams);
listener->RelayMessage(nullptr, nullptr, executedMessage, true);
}
return Empty;
}
}