Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pointless return statement call #5

Closed
roreng opened this issue Jul 21, 2023 · 0 comments
Closed

Pointless return statement call #5

roreng opened this issue Jul 21, 2023 · 0 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@roreng
Copy link
Collaborator

roreng commented Jul 21, 2023

В данном случае, вызов оператора return после log.Fatal является излишним, так как программа завершит работу без оператора return. Описание метода log.Fatal "Fatal is equivalent to Print() followed by a call to os.Exit(1)."

https://github.com/devrdn/wp-vulnerability-parser/blob/f9edc44351ab752a529cbcf1d64be403b69296a3/cmd/bot/main.go#L17-L18

@roreng roreng added the invalid This doesn't seem right label Jul 21, 2023
@devrdn devrdn closed this as completed Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants