Adding comments to iodine

master
Frederick F. Kautz IV 10 years ago
parent 0e89facf7d
commit 7212b3406a
  1. 1
      pkg/iodine/iodine.go

@ -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…
Cancel
Save