Skip to content

Commit 79c688f

Browse files
committed
fix lint nestif
1 parent deb85bd commit 79c688f

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

api/v3/wms_types.go

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -582,19 +582,16 @@ func (wms *WMS) URLPath() string {
582582

583583
func (wms *WMS) GeoPackages() []*Gpkg {
584584
gpkgs := make([]*Gpkg, 0)
585-
586-
// TODO fix linting (nestif)
587-
if wms.Spec.Service.Layer.Layers != nil {
588-
for _, layer := range wms.Spec.Service.Layer.Layers {
589-
if layer.Data != nil {
590-
if layer.Data.Gpkg != nil {
591-
gpkgs = append(gpkgs, layer.Data.Gpkg)
592-
}
593-
} else if layer.Layers != nil {
594-
for _, childLayer := range layer.Layers {
595-
if childLayer.Data != nil && childLayer.Data.Gpkg != nil {
596-
gpkgs = append(gpkgs, childLayer.Data.Gpkg)
597-
}
585+
586+
for _, layer := range wms.Spec.Service.Layer.Layers {
587+
if layer.Data != nil {
588+
if layer.Data.Gpkg != nil {
589+
gpkgs = append(gpkgs, layer.Data.Gpkg)
590+
}
591+
} else if layer.Layers != nil {
592+
for _, childLayer := range layer.Layers {
593+
if childLayer.Data != nil && childLayer.Data.Gpkg != nil {
594+
gpkgs = append(gpkgs, childLayer.Data.Gpkg)
598595
}
599596
}
600597
}

0 commit comments

Comments
 (0)