Skip to content

Remove unnecesary validations#20

Merged
maxd-nordic merged 1 commit intonordicsemi:mainfrom
pascal-nordic:remove-unnecesary-code
May 12, 2025
Merged

Remove unnecesary validations#20
maxd-nordic merged 1 commit intonordicsemi:mainfrom
pascal-nordic:remove-unnecesary-code

Conversation

@pascal-nordic
Copy link
Copy Markdown
Collaborator

Error handling is managed in at_client.py so there is no need to validate again errors in other parts of the code

Comment on lines 90 to 91
if credstore.delete(args.tag, ct):
print(f'{ct.name} in secure tag {args.tag} deleted')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if credstore.delete(args.tag, ct):
print(f'{ct.name} in secure tag {args.tag} deleted')
credstore.delete(args.tag, ct)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to keep the feedback because it acknowledge that you have successfully deleted the sectag, otherwise it prints the error. Without it, if success you don't get anything printed

Signed-off-by: Pascal Hernandez <pascal.hernandez@nordicsemi.no>
@pascal-nordic pascal-nordic force-pushed the remove-unnecesary-code branch from 6ba6142 to 37949cc Compare May 12, 2025 14:03
@maxd-nordic maxd-nordic merged commit 87d26a4 into nordicsemi:main May 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants