Skip to content

Commit 2039bc9

Browse files
committed
Address comments
1 parent 235cb8c commit 2039bc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ class Node extends rclnodejs.ShadowNode {
10961096
countClients(serviceName) {
10971097
if (DistroUtils.getDistroId() <= DistroUtils.getDistroId('humble')) {
10981098
console.warn('countClients is not supported by this version of ROS 2');
1099-
return;
1099+
return null;
11001100
}
11011101
return rclnodejs.countClients(this.handle, serviceName);
11021102
}
@@ -1109,7 +1109,7 @@ class Node extends rclnodejs.ShadowNode {
11091109
countServices(serviceName) {
11101110
if (DistroUtils.getDistroId() <= DistroUtils.getDistroId('humble')) {
11111111
console.warn('countServices is not supported by this version of ROS 2');
1112-
return;
1112+
return null;
11131113
}
11141114
return rclnodejs.countServices(this.handle, serviceName);
11151115
}

0 commit comments

Comments
 (0)