mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
build: fix various lint issues
revive default configuration has changed in 1.3.0. Some stuff is a bit silly (like empty blocks), but I find it easier to follow that than to try to tweak the configuration.
This commit is contained in:
@@ -189,9 +189,9 @@ func DefaultHook() (mapstructure.DecodeHookFunc, func()) {
|
||||
}
|
||||
}
|
||||
if to.IsNil() {
|
||||
new := reflect.New(to.Type().Elem())
|
||||
method.Func.Call([]reflect.Value{new})
|
||||
to.Set(new)
|
||||
newV := reflect.New(to.Type().Elem())
|
||||
method.Func.Call([]reflect.Value{newV})
|
||||
to.Set(newV)
|
||||
return from.Interface(), nil
|
||||
}
|
||||
method.Func.Call([]reflect.Value{to})
|
||||
|
||||
Reference in New Issue
Block a user