Skip to content

Commit 185d74f

Browse files
committed
Fix lint error
1 parent d1ae6b7 commit 185d74f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/rcl_handle.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class RclHandle : public Napi::ObjectWrap<RclHandle> {
4646
// void SetBoolProperty(const std::string& name, bool value);
4747
void SyncProperties();
4848

49-
RclHandle(const Napi::CallbackInfo& info);
49+
explicit RclHandle(const Napi::CallbackInfo& info);
5050
~RclHandle();
5151

5252
public:
@@ -128,9 +128,8 @@ class RclHandle : public Napi::ObjectWrap<RclHandle> {
128128
// std::endl;
129129
}),
130130
"SetBoolProperty",
131-
0, // Max queue size (0 = unlimited)
132-
1 // Initial thread count
133-
);
131+
0, // Max queue size (0 = unlimited)
132+
1); // Number of threads to use);
134133
}
135134
}
136135

src/shadow_node.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ShadowNode : public Napi::ObjectWrap<ShadowNode>,
4242
void Execute(const std::vector<rclnodejs::RclHandle*>& handles) override;
4343
void CatchException(std::exception_ptr e_ptr) override;
4444

45-
ShadowNode(const Napi::CallbackInfo& info);
45+
explicit ShadowNode(const Napi::CallbackInfo& info);
4646
~ShadowNode();
4747

4848
private:

0 commit comments

Comments
 (0)