mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
fix: use equalFold() instead of lower and compare (#13624)
This commit is contained in:
@@ -31,7 +31,7 @@ type Boolean bool
|
||||
|
||||
// Capture interface used by participle
|
||||
func (b *Boolean) Capture(values []string) error {
|
||||
*b = strings.ToLower(values[0]) == "true"
|
||||
*b = Boolean(strings.EqualFold(values[0], "true"))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user