mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Address singleCaseSwitch errors
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -146,8 +146,7 @@ func (c *configToml) setFlagToKeyValue(setFlag string) (string, interface{}, err
|
||||
if v == nil {
|
||||
return key, nil, errInvalidConfigOption
|
||||
}
|
||||
switch v.(type) {
|
||||
case bool:
|
||||
if _, ok := v.(bool); ok {
|
||||
if len(setParts) == 1 {
|
||||
return key, true, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user