Direct check for key in command_lib['snippets'] dictionary #1041
Labels
GH Open Source Day
Reserved for Grace Hopper Open Source Day participants
good first issue
A good first issue to tackle if you are new to the project
WARNING
If this is your first tern contribution, please update your local git settings using these instructions.
DO NOT USE THE GITHUB UI!
When creating your commit message for your PR, make sure to use
git commit -s
rather thangit commit -m
Remember to add a
Fixes: #1041
line in your commit message.Description
The get_command_listing function checks if a specific command
name exists in the command_lib['snippets'] dictionary. Rather than
checking the return value of command_lib['snippets'].keys() we directly
check the command_lib['snippets'] dictionary to improve performance.
Implementation
Make the following change in
tern/analyze/default/command_lib/command_lib.py
:The text was updated successfully, but these errors were encountered: