Skip to content

Commit

Permalink
fix(go): Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettelerij committed Sep 26, 2024
1 parent b1ec680 commit 50c3e7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ linters:
- gosec # inspects source code for security problems
- loggercheck # checks key value pairs for common logger libraries (kitlog,klog,logr,zap)
- makezero # finds slice declarations with non-zero initial length
- misspell # finds commonly misspelled English words
- nakedret # finds naked returns in functions greater than a specified function length
- nestif # reports deeply nested if statements
- nilerr # finds the code that returns nil even if it checks that the error is not nil
Expand Down
2 changes: 1 addition & 1 deletion config/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func sortByLiteralOrder(collections []GeoSpatialCollection, literalOrder []strin
collectionOrderIndex[id] = i
}
sort.Slice(collections, func(i, j int) bool {
// sort according to the explict/literal order specified in OgcAPICollectionOrder
// sort according to the explicit/literal order specified in OgcAPICollectionOrder
return collectionOrderIndex[collections[i].ID] < collectionOrderIndex[collections[j].ID]
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func downloadGeoPackage(gpkg *config.GeoPackageLocal) {
if err != nil {
log.Fatalf("failed to download GeoPackage: %v", err)
}
log.Printf("succesfully downloaded GeoPackage to %s in %s", gpkg.File, downloadTime.Round(time.Second))
log.Printf("successfully downloaded GeoPackage to %s in %s", gpkg.File, downloadTime.Round(time.Second))
}

func (g *localGeoPackage) getDB() *sqlx.DB {
Expand Down

0 comments on commit 50c3e7d

Please sign in to comment.