diff pkg/imports/fm.go @ 5712:6270951dda28 revive-cleanup

/interface{}/any/
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 20 Feb 2024 22:37:51 +0100
parents 1222b777f51f
children
line wrap: on
line diff
--- a/pkg/imports/fm.go	Tue Feb 20 22:22:57 2024 +0100
+++ b/pkg/imports/fm.go	Tue Feb 20 22:37:51 2024 +0100
@@ -235,7 +235,7 @@
 				),
 				consume,
 				createInvalidation("bcnlat_hydro"),
-				newPointFeature(func() interface{} { return new(bcnlatHydroProperties) }),
+				newPointFeature(func() any { return new(bcnlatHydroProperties) }),
 			),
 		})
 
@@ -251,7 +251,7 @@
 				),
 				consume,
 				createInvalidation("bcnlat_ienc"),
-				newPointFeature(func() interface{} { return new(bcnlatIencProperties) }),
+				newPointFeature(func() any { return new(bcnlatIencProperties) }),
 			),
 		})
 
@@ -267,7 +267,7 @@
 				),
 				consume,
 				createInvalidation("boylat_hydro"),
-				newPointFeature(func() interface{} { return new(boylatHydroProperties) }),
+				newPointFeature(func() any { return new(boylatHydroProperties) }),
 			),
 		})
 
@@ -283,7 +283,7 @@
 				),
 				consume,
 				createInvalidation("boylat_ienc"),
-				newPointFeature(func() interface{} { return new(boylatIencProperties) }),
+				newPointFeature(func() any { return new(boylatIencProperties) }),
 			),
 		})
 
@@ -299,7 +299,7 @@
 				),
 				consume,
 				createInvalidation("boycar"),
-				newPointFeature(func() interface{} { return new(boycarProperties) }),
+				newPointFeature(func() any { return new(boycarProperties) }),
 			),
 		})
 
@@ -314,7 +314,7 @@
 				),
 				consume,
 				createInvalidation("boysaw"),
-				newPointFeature(func() interface{} { return new(boysawProperties) }),
+				newPointFeature(func() any { return new(boysawProperties) }),
 			),
 		})
 
@@ -330,7 +330,7 @@
 				),
 				consume,
 				createInvalidation("boyspp"),
-				newPointFeature(func() interface{} { return new(boysppProperties) }),
+				newPointFeature(func() any { return new(boysppProperties) }),
 			),
 		})
 
@@ -345,7 +345,7 @@
 				),
 				consume,
 				createInvalidation("daymar_hydro"),
-				newPointFeature(func() interface{} { return new(daymarHydroProperties) }),
+				newPointFeature(func() any { return new(daymarHydroProperties) }),
 			),
 		})
 
@@ -361,7 +361,7 @@
 				),
 				consume,
 				createInvalidation("daymar_ienc"),
-				newPointFeature(func() interface{} { return new(daymarIencProperties) }),
+				newPointFeature(func() any { return new(daymarIencProperties) }),
 			),
 		})
 
@@ -380,7 +380,7 @@
 				),
 				consume,
 				createInvalidation("lights"),
-				newPointFeature(func() interface{} { return new(lightsProperties) }),
+				newPointFeature(func() any { return new(lightsProperties) }),
 			),
 		})
 
@@ -399,7 +399,7 @@
 				),
 				consume,
 				createInvalidation("notmrk"),
-				newPointFeature(func() interface{} { return new(notmrkProperties) }),
+				newPointFeature(func() any { return new(notmrkProperties) }),
 			),
 		})
 
@@ -414,7 +414,7 @@
 				),
 				consume,
 				createInvalidation("rtpbcn"),
-				newPointFeature(func() interface{} { return new(rtpbcnProperties) }),
+				newPointFeature(func() any { return new(rtpbcnProperties) }),
 			),
 		})
 
@@ -429,7 +429,7 @@
 				),
 				consume,
 				createInvalidation("topmar"),
-				newPointFeature(func() interface{} { return new(topmarProperties) }),
+				newPointFeature(func() any { return new(topmarProperties) }),
 			),
 		})
 }
@@ -583,7 +583,7 @@
 
 func consume(
 	spc *SQLGeometryConsumer,
-	geom, properties interface{},
+	geom, properties any,
 	epsg int,
 ) error {
 	var fmid int64
@@ -591,7 +591,7 @@
 		return spc.stmts[0].QueryRowContext(
 			spc.ctx,
 			append(
-				[]interface{}{
+				[]any{
 					geom.(interface{ asWKB() []byte }).asWKB(),
 					epsg,
 				},