Skip to content

Comments

Simplify error handling in code#1

Open
GermanS wants to merge 1 commit intoF3kilo:masterfrom
GermanS:master
Open

Simplify error handling in code#1
GermanS wants to merge 1 commit intoF3kilo:masterfrom
GermanS:master

Conversation

@GermanS
Copy link

@GermanS GermanS commented Feb 21, 2025

Dear F3kilo

This pull request aims to simplify the error handling in code by refining the way we return error messages.

  • Replaced the use of String::from("No message provided").into() with a more concise return statement: Err("No message provided".into()).

This change improves code readability and maintainability without altering the functionality.

Please review the changes. Thank you!

…)` with a more concise &str conversion using `.into()`
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.

1 participant