Commit 9070b0b
authored
Fix poetenial issues in parser.py (#1404)
This PR tightens up the `rosidl_parser/parser.py` CLI wrapper used by the Node-side `rosidl_parser.js` helper by removing unused code and correcting the expected CLI argument count.
**Changes:**
- Remove an unused `rosidl_parser` import.
- Remove an unused intermediate `msg_name` variable.
- Update the CLI argument count check to require 3 parameters after the script name (command, package, file path).
Fix: #14031 parent 1b3fdb9 commit 9070b0b
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | | - | |
52 | | - | |
| 49 | + | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
0 commit comments