-
Notifications
You must be signed in to change notification settings - Fork 40
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
Upgrade to go 1.22 #511
Upgrade to go 1.22 #511
Conversation
General maintenance review, please, @pastuxso. |
Quality Gate passedIssues Measures |
} | ||
} | ||
} else { | ||
if typ := reflect.TypeOf(uErrs); typ.Kind() != reflect.Slice { |
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.
@sourishkrout, I'm wondering if this refactoring is part of the upgrade, and can be addressed in a separate PR?
Is it part of the go lint/format?
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.
Yes, lint/format after upgrade requires to turn if/else into early returns/breaks wherever possible. I think those changes are safe since we have broad test coverage for this code.
firstError = errors.Wrap(err, "failed to parse frontmatter content") | ||
} | ||
} else { | ||
if err == nil { |
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.
IDEM.
Bumping dependencies at the same time.