-
Notifications
You must be signed in to change notification settings - Fork 109
fix: general maintenance, updates, and linter fixes #712
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
base: master
Are you sure you want to change the base?
Conversation
Migrate from github.com/ghodss/yaml to sigs.k8s.io/yaml Update from gopkg.in/yaml.v2 to gopkg.in/yaml.v3
|
|
||
| if paths != nil && strings.Contains(fmt.Sprintf("%v", paths), "/var/run/docker.sock") { | ||
| found++ | ||
| paths, ok := data.([]interface{}) |
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 can be cast to []string instead
|
|
||
| if paths != nil { | ||
| found += len(paths.([]interface{})) | ||
| paths, ok := data.([]interface{}) |
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.
need to double check if this can be cast to []string instead
| // In wrapping error treat all httpError types as nil-able | ||
| func NewHTTPError(msg string) *httpError { | ||
| return &httpError{ | ||
| statusCode: http.StatusBadRequest, |
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 should be internal server error instead
esticansat
left a comment
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.
some comments from review
All Submissions.
Code Submissions.
Changes to Core Features.