fix: token check and error unwrapping (#3648)

* fix: token check and error unwrapping

* remove unused code
This commit is contained in:
Livio Amstutz
2022-05-18 10:49:16 +02:00
committed by GitHub
parent 4ec006dd02
commit 616b31c959
13 changed files with 46 additions and 33 deletions

View File

@@ -38,3 +38,7 @@ func IsErrorAlreadyExists(err error) bool {
_, ok := err.(AlreadyExists)
return ok
}
func (err *AlreadyExistsError) Unwrap() error {
return err.CaosError
}