mirror of
https://github.com/minio/minio.git
synced 2024-12-26 23:25:54 -05:00
Merge pull request #459 from fkautz/pr_out_adding_comments_to_iodine
This commit is contained in:
commit
1d4bc0c34e
@ -94,6 +94,7 @@ func GetGlobalStateKey(k string) string {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ToError returns the input if it is not an iodine error. It returns the embedded error if it is an iodine error. If nil, returns nil.
|
||||||
func ToError(err error) error {
|
func ToError(err error) error {
|
||||||
switch err := err.(type) {
|
switch err := err.(type) {
|
||||||
case nil:
|
case nil:
|
||||||
|
Loading…
Reference in New Issue
Block a user