Rearange code

This commit is contained in:
DRON-666
2024-04-29 01:27:34 +03:00
parent 7ee889bb0d
commit 125dba23c5
2 changed files with 16 additions and 20 deletions

View File

@@ -274,11 +274,7 @@ func TestParseProvider(t *testing.T) {
if err != nil {
result = err.Error()
}
matched, err := regexp.MatchString(test.result, result)
if err != nil {
panic(err)
}
if !matched || test.result == "" {
if test.result != result || test.result == "" {
t.Fatalf("wrong result, want:\n %#v\ngot:\n %#v", test.result, result)
}
} else if !ole.IsEqualGUID(id, test.id) {