Skip to content

Commit e24cf7b

Browse files
authored
Convert list comprehension to generator (#314)
Addresses flake8 C412 errors introduced by flake8-comprehension 2.2.0 Signed-off-by: Scott K Logan <[email protected]>
1 parent 0ce8efa commit e24cf7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ros2node/ros2node/verb/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def add_arguments(self, parser, cli_name):
4040
def main(self, *, args):
4141
with NodeStrategy(args) as node:
4242
node_names = get_node_names(node=node, include_hidden_nodes=True)
43-
if args.node_name in [n.full_name for n in node_names]:
43+
if args.node_name in (n.full_name for n in node_names):
4444
with DirectNode(args) as node:
4545
print(args.node_name)
4646
subscribers = get_subscriber_info(node=node, remote_node_name=args.node_name)

0 commit comments

Comments
 (0)