From ed88a93ef78262735bac742409f472170aedf1c0 Mon Sep 17 00:00:00 2001 From: jt-dd Date: Fri, 15 Mar 2024 19:57:46 +0100 Subject: [PATCH] cleaning --- pkg/dump/writer/fs_writer.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/dump/writer/fs_writer.go b/pkg/dump/writer/fs_writer.go index f8cb8a3b8..6b54b41e2 100644 --- a/pkg/dump/writer/fs_writer.go +++ b/pkg/dump/writer/fs_writer.go @@ -48,23 +48,6 @@ func (f *FSWriter) WriteFile(ctx context.Context, pathObj string, k8sObj []byte) return fmt.Errorf("failed to write JSON data to file: %w", err) } - // file, err := f.vfs.OpenFile(pathObj, os.O_APPEND|os.O_WRONLY|os.O_CREATE, FileWriterChmod) - // if err != nil { - // return fmt.Errorf("failed to open file: %w", err) - // } - // defer file.Close() - - // buffer := bufio.NewWriter(file) - // _, err = buffer.Write(k8sObj) - // if err != nil { - // return fmt.Errorf("failed to write JSON data to buffer: %w", err) - // } - - // err = buffer.Flush() - // if err != nil { - // return fmt.Errorf("failed to flush writer: %w", err) - // } - return nil }