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

correct err usage if err is nil #408

Merged

Conversation

yokofly
Copy link
Contributor

@yokofly yokofly commented Oct 18, 2024

get https://github.com/yokofly/sling-cli/blob/b8a5a17c4cae2ad54f99b0569ec1560a9c02933b/core/sling/task_run_write.go
and find there are 5 lins with direct Error("msg") instead Error(err, "msg") usage.
say those lines probably hit Err is nil case, and we shall not use Error(err, "msg") if err is nil

follow up #399

@flarco flarco merged commit d952a23 into slingdata-io:1.2.21 Oct 20, 2024
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