Skip to content

Conversation

@06kellyjac
Copy link
Member

  • chore: resolve shellcheck issue
  • fix: resolve golangci-lint complaints and improve http error handling
  • docs: update stefan's email
  • chore: update go deps
  • chore: remove now unnecessary reassignment

All Submissions.

Code Submissions.

  • Does your submission pass linting, tests, and security analysis?

Changes to Core Features.

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?


if paths != nil && strings.Contains(fmt.Sprintf("%v", paths), "/var/run/docker.sock") {
found++
paths, ok := data.([]interface{})
Copy link
Contributor

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{})
Copy link
Contributor

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,
Copy link
Contributor

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

Copy link
Contributor

@esticansat esticansat left a 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

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.

3 participants