From 7212b3406a0a57d45b162c650a632e8797a13912 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Wed, 8 Apr 2015 19:44:44 -0700 Subject: [PATCH] Adding comments to iodine --- pkg/iodine/iodine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/iodine/iodine.go b/pkg/iodine/iodine.go index adc2f9a6b..71e29c894 100644 --- a/pkg/iodine/iodine.go +++ b/pkg/iodine/iodine.go @@ -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: