Correcting all go vet errors
This commit is contained in:
@@ -92,7 +92,7 @@ func (g *conversionGenerator) GenerateConversionsForType(version string, reflect
|
||||
}
|
||||
internalObjType := reflect.TypeOf(internalObj)
|
||||
if internalObjType.Kind() != reflect.Ptr {
|
||||
return fmt.Errorf("created object should be of type Ptr: ", internalObjType.Kind())
|
||||
return fmt.Errorf("created object should be of type Ptr: %v", internalObjType.Kind())
|
||||
}
|
||||
inErr := g.generateConversionsBetween(reflection, internalObjType.Elem())
|
||||
outErr := g.generateConversionsBetween(internalObjType.Elem(), reflection)
|
||||
@@ -173,7 +173,6 @@ func (g *conversionGenerator) generateConversionsBetween(inType, outType reflect
|
||||
// All simple types should be handled correctly with default conversion.
|
||||
return nil
|
||||
}
|
||||
panic("This should never happen")
|
||||
}
|
||||
|
||||
func isComplexType(reflection reflect.Type) bool {
|
||||
|
Reference in New Issue
Block a user