Skip to content

Commit

Permalink
Upgrade to golangci-lint v0.58.2
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstace committed May 19, 2024
1 parent 86598d2 commit 0df28b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ci/golint.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golangci/golangci-lint:v1.58.1
FROM golangci/golangci-lint:v1.58.2

RUN apt-get update \
&& apt-get install -y -q --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Unreleased

- Upgrades `golangci-lint` to `v1.58.1`.
- Upgrades `golangci-lint` to `v1.58.2`.

- Fixes a bug where geometry collections with mixed coordinate types were
erroneously allowed during WKT and WKB parsing.
Expand Down
2 changes: 1 addition & 1 deletion geom/geojson_feature_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
if err := json.Unmarshal(p, &topLevel); err != nil {
return err
}
if topLevel.Type == "" {
Expand Down
2 changes: 1 addition & 1 deletion geom/type_null_geometry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
return ng.Geometry.Value()
}

0 comments on commit 0df28b9

Please sign in to comment.