Fixed indetation

This commit is contained in:
porosnicuadrian
2021-08-17 16:50:06 +03:00
committed by Dan Christian Bogos
parent 710dafad8e
commit 4aae1cdcb1
4 changed files with 12 additions and 7 deletions

View File

@@ -286,6 +286,13 @@ func TestMultiplyConverterConvert(t *testing.T) {
} else if !reflect.DeepEqual(rcv, 0.0) {
t.Errorf("Expected %+v received: %+v", 0, rcv)
}
m.Value = 2
if rcv, err := m.Convert(3); err != nil {
t.Error(err)
} else if !reflect.DeepEqual(rcv, 6.0) {
t.Errorf("Expected %+v received: %+v", 0, rcv)
}
}
func TestNewDivideConverter(t *testing.T) {

View File

@@ -60,7 +60,7 @@ func MissingStructFields(s interface{}, mandatories []string) []string {
sType := sValue.Type()
for _, fieldName := range mandatories {
fldStr, ok := sType.FieldByName(fieldName)
if !ok || fieldByIndexIsEmpty(sValue, fldStr.Index){
if !ok || fieldByIndexIsEmpty(sValue, fldStr.Index) {
missing = append(missing, fieldName)
}
}