mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
cleanup ignored static analysis (#16767)
This commit is contained in:
@@ -76,8 +76,7 @@ func (args *ReaderArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (er
|
||||
return err
|
||||
}
|
||||
|
||||
switch se := t.(type) {
|
||||
case xml.StartElement:
|
||||
if se, ok := t.(xml.StartElement); ok {
|
||||
tagName := se.Name.Local
|
||||
switch tagName {
|
||||
case "AllowQuotedRecordDelimiter":
|
||||
@@ -158,8 +157,7 @@ func (args *WriterArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) err
|
||||
return err
|
||||
}
|
||||
|
||||
switch se := t.(type) {
|
||||
case xml.StartElement:
|
||||
if se, ok := t.(xml.StartElement); ok {
|
||||
var s string
|
||||
if err = d.DecodeElement(&s, &se); err != nil {
|
||||
return err
|
||||
|
||||
@@ -28,9 +28,7 @@ import (
|
||||
// valueBuilders contains one constructor for each value type.
|
||||
// Values should match if type is the same.
|
||||
var valueBuilders = []func() *Value{
|
||||
func() *Value {
|
||||
return FromNull()
|
||||
},
|
||||
FromNull,
|
||||
func() *Value {
|
||||
return FromBool(true)
|
||||
},
|
||||
@@ -58,9 +56,7 @@ var valueBuilders = []func() *Value{
|
||||
// altValueBuilders contains one constructor for each value type.
|
||||
// Values are zero values and should NOT match the values in valueBuilders, except Null type.
|
||||
var altValueBuilders = []func() *Value{
|
||||
func() *Value {
|
||||
return FromNull()
|
||||
},
|
||||
FromNull,
|
||||
func() *Value {
|
||||
return FromBool(false)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user