File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments