From 23311cb6910ec4ee3e2991fb5d69cc68c3df85d4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 02:07:40 +0000 Subject: [PATCH] ci(pre-commit): autofix --- nebula_hw_interfaces/test/common/test_udp.cpp | 2 +- nebula_hw_interfaces/test/common/test_udp/utils.hpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nebula_hw_interfaces/test/common/test_udp.cpp b/nebula_hw_interfaces/test/common/test_udp.cpp index d2fd61aa..eb5f68cc 100644 --- a/nebula_hw_interfaces/test/common/test_udp.cpp +++ b/nebula_hw_interfaces/test/common/test_udp.cpp @@ -181,4 +181,4 @@ int main(int argc, char * argv[]) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); -}; \ No newline at end of file +}; diff --git a/nebula_hw_interfaces/test/common/test_udp/utils.hpp b/nebula_hw_interfaces/test/common/test_udp/utils.hpp index dfb0fbb9..6b949219 100644 --- a/nebula_hw_interfaces/test/common/test_udp/utils.hpp +++ b/nebula_hw_interfaces/test/common/test_udp/utils.hpp @@ -53,11 +53,10 @@ std::optional udp_send( return {}; } -template +template std::optional< std::pair, nebula::drivers::connections::UdpSocket::ReceiveMetadata>> -receive_once( - nebula::drivers::connections::UdpSocket & sock, std::chrono::duration<_T, _R> timeout) +receive_once(nebula::drivers::connections::UdpSocket & sock, std::chrono::duration<_T, _R> timeout) { std::condition_variable cv_received_result; std::mutex mtx_result; @@ -75,4 +74,4 @@ receive_once( cv_received_result.wait_for(lock, timeout, [&result]() { return result.has_value(); }); sock.unsubscribe(); return result; -} \ No newline at end of file +}