From 8d0896466fb06661963e5573777d366257d2fa55 Mon Sep 17 00:00:00 2001 From: Eti Ijeoma Date: Thu, 16 Jan 2025 14:58:44 +0000 Subject: [PATCH] remove debug statement Signed-off-by: Eti Ijeoma --- cmd/kanvas-snapshot/cmd.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/kanvas-snapshot/cmd.go b/cmd/kanvas-snapshot/cmd.go index 9161c4aa29..35953e59e5 100644 --- a/cmd/kanvas-snapshot/cmd.go +++ b/cmd/kanvas-snapshot/cmd.go @@ -205,7 +205,6 @@ func CreateMesheryDesign(uri, name, email string) (string, error) { } func GenerateSnapshot(contentID, assetLocation string, ghAccessToken string) error { - fmt.Println(len(ghAccessToken)) payload := fmt.Sprintf(`{"ref":"master","inputs":{"contentID":"%s","assetLocation":"%s"}}`, contentID, assetLocation) req, err := http.NewRequest("POST", "https://api.github.com/repos/meshery/helm-kanvas-snapshot/actions/workflows/kanvas.yaml/dispatches", bytes.NewBuffer([]byte(payload))) if err != nil { @@ -221,13 +220,10 @@ func GenerateSnapshot(contentID, assetLocation string, ghAccessToken string) err return err } defer resp.Body.Close() - fmt.Println(resp.Status) - bdy, err := io.ReadAll(resp.Body) + _, err = io.ReadAll(resp.Body) if err != nil { - fmt.Println(err) return err } - fmt.Println(string(bdy)) return nil }