Skip to content

Commit fe0f4de

Browse files
fix(web): resolve clang-tidy warnings
Signed-off-by: Jorge Ferreira <jorge.ferreira@precisioninno.com>
1 parent ca7d44f commit fe0f4de

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/web/src/request_handler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "json_builder.h"
3535
#include "odb/3dblox.h"
3636
#include "odb/db.h"
37-
#include "odb/dbTransform.h"
3837
#include "odb/dbTypes.h"
3938
#include "odb/geom.h"
4039
#include "tile_generator.h"

src/web/src/web.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static WebSocketRequest parse_web_socket_request(const std::string& msg)
183183
for (const std::string& str_index : extract_string_array(msg, "indexes")) {
184184
try {
185185
req.drc_visible_indexes.insert(std::stoi(str_index));
186-
} catch (...) {
186+
} catch (const std::exception&) {
187187
// Skip unparseable indexes; the client may send invalid data.
188188
continue;
189189
}

0 commit comments

Comments
 (0)