From 1465ce6f76170642ad51ac0aa474107797d812e9 Mon Sep 17 00:00:00 2001 From: Chris Koch Date: Mon, 25 Mar 2024 02:44:23 +0000 Subject: [PATCH] Remove checkErrors Signed-off-by: Chris Koch --- dmidecode/struct_parser_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/dmidecode/struct_parser_test.go b/dmidecode/struct_parser_test.go index f1939ac..2692e61 100644 --- a/dmidecode/struct_parser_test.go +++ b/dmidecode/struct_parser_test.go @@ -14,16 +14,6 @@ import ( "github.com/u-root/smbios" ) -func checkError(got error, want error) bool { - if got != nil && want != nil { - if got.Error() == want.Error() { - return true - } - } - - return errors.Is(got, want) -} - type UnknownTypes struct { smbios.Table SupportedField uint64