mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2026-02-13 06:31:46 +01:00
Fix QF1011: could omit type ... from declaration; it will be inferred from the right-hand side (staticcheck)
This commit is contained in:
@@ -169,7 +169,7 @@ func medianfunc(args interface{}) (interface{}, error) {
|
||||
|
||||
func lenfunc(args interface{}) (interface{}, error) {
|
||||
var err error = nil
|
||||
var length int = 0
|
||||
length := 0
|
||||
switch values := args.(type) {
|
||||
case []float64:
|
||||
length = len(values)
|
||||
|
||||
Reference in New Issue
Block a user