-
Notifications
You must be signed in to change notification settings - Fork 69
Fix all errors reported by golint-ci #435
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
Conversation
| fileDiffsOnce sync.Once | ||
| } | ||
|
|
||
| func (ts *TaskStatus) Clone() *TaskStatus { |
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.
Unused function that's also broken because it copies a sync.Once.
|
|
||
| file.WriteString(content) | ||
| if _, err := file.WriteString(content); err != nil { | ||
| return err |
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.
This would break out of the loop, which is maybe what we want, but just double checking the assumption 🙂
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.
I think that's fine, yeah.
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.
So fresh, so clean! Thanks for doing this.
* Fix all errors reported by golint-ci * See if that fixes the windows build * Use os.Chmod() instead of (*os.File).Chmod() to fix windows
I used VS Code again and got sick of all the warnings popping up. So, here we are. I fixed all the errors reported by running
golint-ci runin the root ofsrc-cli.