From d7a8cbebee90515472884ce31c3d8d120698c7f5 Mon Sep 17 00:00:00 2001 From: Maor Date: Tue, 4 Dec 2018 15:52:46 +0200 Subject: [PATCH] [kube\exec] remove redundant casting --- pkg/skbn/kube.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/skbn/kube.go b/pkg/skbn/kube.go index fecdd01..61110ef 100644 --- a/pkg/skbn/kube.go +++ b/pkg/skbn/kube.go @@ -90,7 +90,7 @@ func GetListOfFilesFromK8s(iClient interface{}, path, findType, findName string) continue } - lines := strings.Split((string)(output.Bytes()), "\n") + lines := strings.Split(output.String(), "\n") var outLines []string for _, line := range lines { if line != "" {