Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-dd committed Mar 15, 2024
1 parent d829448 commit ed88a93
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pkg/dump/writer/fs_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit ed88a93

Please sign in to comment.