mirror of
https://github.com/minio/minio.git
synced 2025-01-13 16:03:21 -05:00
Adding comments to iodine
This commit is contained in:
parent
0e89facf7d
commit
7212b3406a
@ -94,6 +94,7 @@ func GetGlobalStateKey(k string) string {
|
||||
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 {
|
||||
switch err := err.(type) {
|
||||
case nil:
|
||||
|
Loading…
Reference in New Issue
Block a user