From 7b3426fb129f41ca05353b5e1dd66264a3a96d0f Mon Sep 17 00:00:00 2001 From: Luca Muscariello Date: Wed, 19 Oct 2022 17:51:12 +0200 Subject: fix(sonar): False positives Identical sub-expressions on both sides of operator Ref: HICN-816 Signed-off-by: Luca Muscariello Change-Id: Ifdbcad287f89378dc2a35110fac01dba9c341ef9 --- hicn-light/src/hicn/test/test-loop.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hicn-light') diff --git a/hicn-light/src/hicn/test/test-loop.cc b/hicn-light/src/hicn/test/test-loop.cc index 0ebf7a22a..71635c929 100644 --- a/hicn-light/src/hicn/test/test-loop.cc +++ b/hicn-light/src/hicn/test/test-loop.cc @@ -121,7 +121,7 @@ class LoopTest : public ::testing::Test { int client_fd = accept(test->connection_socket_, (struct sockaddr *)(&addr), &addr_len); if (client_fd == -1) { - if (errno != EAGAIN && errno != EWOULDBLOCK) { + if (errno != EAGAIN && errno != EWOULDBLOCK) { // NOSONAR fprintf(stderr, "accept failed"); } -- cgit 1.2.3-korg