-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Fix linter errors #556
Fix linter errors #556
Conversation
…rrors instead: 'fmt.Errorf()'"
…of var something; it is the zero value (revive)"
…k resources. Use time.NewTimer instead.\"
…nabled 25) (revive)
…lified to if !c { ... return } ... (move short variable declaration to its own line if necessary) (revive)"
…verRequestedShutdown", use "!errors.Is(err, sock.ErrServerRequestedShutdown)" instead (goerr113)"
…lified to if !c { ... return } ... (revive)"
goimports
-ed (goimports)"
For some reason the test seems to be failing, I will check tomorrow! 🙏 |
…d of "!=" operator (revive)"
7bc6fb8
to
d37bcf4
Compare
Hi,@yohamta. During the implementation I noticed that there was a problem with the data race, so I created an issue. Please check it out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you so much for your hard work. The code looks much better now!
What I did
Please See commit log
deep-exit: calls to log.Fatal only in main() or init() functions (revive)
some function has cyclomatic complexity 39 (> max enabled 25) (revive)
ref: before fix lint errors
Thank you for your confirmation!
Related issue
Fixes #553 .