From 96a50c4b49b78d4e4edf73e646e6f1f6942dee0d Mon Sep 17 00:00:00 2001 From: Michiel Korpel Date: Mon, 9 Dec 2024 18:48:53 +0100 Subject: [PATCH] refactor(config): clearer function name --- config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index cc798bc6..f20efd80 100644 --- a/config/config.go +++ b/config/config.go @@ -210,18 +210,18 @@ func setDefaults(config *Config) error { } if config.OgcAPI.Tiles != nil && config.OgcAPI.Tiles.DatasetTiles != nil && config.OgcAPI.Tiles.DatasetTiles.HealthCheck.Srs == DefaultSrs && config.OgcAPI.Tiles.DatasetTiles.HealthCheck.TilePath == nil { - setTilePath(config.OgcAPI.Tiles.DatasetTiles) + setHealthCheckTilePath(config.OgcAPI.Tiles.DatasetTiles) } else if config.OgcAPI.Tiles != nil && config.OgcAPI.Tiles.Collections != nil { for _, coll := range config.OgcAPI.Tiles.Collections { if coll.Tiles.GeoDataTiles.HealthCheck.Srs == DefaultSrs && coll.Tiles.GeoDataTiles.HealthCheck.TilePath == nil { - setTilePath(&coll.Tiles.GeoDataTiles) + setHealthCheckTilePath(&coll.Tiles.GeoDataTiles) } } } return nil } -func setTilePath(tilesConfig *Tiles) { +func setHealthCheckTilePath(tilesConfig *Tiles) { var deepestZoomLevel int for _, srs := range tilesConfig.SupportedSrs { if srs.Srs == DefaultSrs {