mirror of
https://github.com/livekit/livekit.git
synced 2026-08-28 05:04:10 +00:00
handle boolean pointers in config linter
This commit is contained in:
@@ -36,7 +36,11 @@ func checkYAMLTags(t reflect.Type, seen map[reflect.Type]struct{}) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if field.Type.Kind() == reflect.Bool {
|
||||
typ := field.Type
|
||||
if field.Type.Kind() == reflect.Pointer {
|
||||
typ = field.Type.Elem()
|
||||
}
|
||||
if typ.Kind() == reflect.Bool {
|
||||
// ignore boolean fields
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user