From afde0dd7a06d41360c51f91826783b69a8dcb583 Mon Sep 17 00:00:00 2001 From: Kris Hicks Date: Fri, 28 Apr 2017 13:04:34 -0700 Subject: [PATCH] Remove problematic panic --- patch.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/patch.go b/patch.go index d1b6c42..845ac37 100644 --- a/patch.go +++ b/patch.go @@ -142,8 +142,6 @@ func findAllPaths(findKey, findValue string, data interface{}) (interface{}, []s paths = append(paths, fmt.Sprintf("%d", i)) } } - default: - panic(fmt.Sprintf("don't know how to handle %T", data)) } if paths != nil {