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

Upgrade to golangci-lint v0.58.2 #617

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

peterstace
Copy link
Owner

Description

As per title.

Check List

Have you:

  • Added unit tests? N/A

  • Add cmprefimpl tests? (if appropriate?) N/A

  • Updated release notes? (if appropriate?) Yes.

Related Issue

  • N/A

@peterstace peterstace self-assigned this May 19, 2024
@@ -153,7 +153,7 @@ func (c *GeoJSONFeatureCollection) UnmarshalJSON(p []byte) error {
Type string `json:"type"`
Features []GeoJSONFeature `json:"features"`
}
if err := json.Unmarshal(p, &topLevel); err != nil { //nolint:musttag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nolint:musttag was to work around a bug, which was fixed in go-simpler/musttag#93.

@@ -24,7 +24,7 @@ func (ng *NullGeometry) Scan(value interface{}) error {
// Value implements the database/sql/driver.Valuer interface.
func (ng NullGeometry) Value() (driver.Value, error) {
if !ng.Valid {
return nil, nil
return nil, nil //nolint:nilnil
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return nil, nil is being detected as suspicious (usually this would be an error). It's not here, because the database/sql/driver.Valuer interface expects nil values (it interprets them as NULL).

@peterstace
Copy link
Owner Author

Thanks for the review!

@peterstace peterstace merged commit 3d40b0d into master May 21, 2024
1 check passed
@peterstace peterstace deleted the upgrade_to_golangci-lint_1.58.2 branch May 21, 2024 02:57
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