Skip to content

Commit

Permalink
make linters happy
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Nov 25, 2024
1 parent fc702f1 commit 92af26f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/rmw_client_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ rmw_ret_t ClientData::take_response(

auto & reply = latest_reply->get_sample();

if(!reply.is_ok()) {
if (!reply.is_ok()) {
RMW_SET_ERROR_MSG("invalid reply sample");
return RMW_RET_ERROR;
}
Expand Down
5 changes: 3 additions & 2 deletions rmw_zenoh_cpp/src/detail/rmw_service_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ std::shared_ptr<ServiceData> ServiceData::make(
std::weak_ptr<rmw_zenoh_cpp::ServiceData> data_wp = service_data;
service_data->qable_ = session->declare_queryable(
service_ke,
[data_wp](const zenoh::Query & query){
[data_wp](const zenoh::Query & query) {
auto sub_data = data_wp.lock();
if (sub_data == nullptr) {
RMW_ZENOH_LOG_ERROR_NAMED(
Expand Down Expand Up @@ -417,7 +417,8 @@ rmw_ret_t ServiceData::send_response(

const zenoh::Query & loaned_query = query->get_query();
zenoh::Query::ReplyOptions options = zenoh::Query::ReplyOptions::create_default();
options.attachment = create_map_and_set_sequence_num(request_id->sequence_number,
options.attachment = create_map_and_set_sequence_num(
request_id->sequence_number,
request_id->writer_guid);

std::vector<uint8_t> raw_bytes(
Expand Down
9 changes: 4 additions & 5 deletions rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,10 @@ bool SubscriptionData::init()
opts.accept_replies = ZC_REPLY_KEYEXPR_ANY;

zenoh::ZResult err;
std::get<zenoh::ext::QueryingSubscriber<void>>(
sub_data->sub_.value()).get(
zenoh::KeyExpr(selector),
std::move(opts),
&err);
std::get<zenoh::ext::QueryingSubscriber<void>>(sub_data->sub_.value()).get(
zenoh::KeyExpr(selector),
std::move(opts),
&err);

if (err != Z_OK) {
RMW_SET_ERROR_MSG("unable to get querying subscriber.");
Expand Down
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/zenohd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int main(int argc, char ** argv)
std::move(config.value()),
zenoh::Session::SessionOptions::create_default(),
&result);
if(result != Z_OK) {
if (result != Z_OK) {
std::cout << "Error opening Session!" << "\\n";
return 1;
}
Expand Down

0 comments on commit 92af26f

Please sign in to comment.