mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 20:47:49 +00:00
Major surgery on the index and resolver. A complete flip in design.
Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
11
utils/unwrap_errors.go
Normal file
11
utils/unwrap_errors.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2023 Princess B33f Heavy Industries / Dave Shanley
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package utils
|
||||
|
||||
func UnwrapErrors(err error) []error {
|
||||
if err == nil {
|
||||
return []error{}
|
||||
}
|
||||
return err.(interface{ Unwrap() []error }).Unwrap()
|
||||
}
|
||||
Reference in New Issue
Block a user