mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
151ddb0a20
commit
d97c6f4e6f
60 files changed
+570
-262
No files matched your search
+1
-1
@@ -85,7 +85,7 @@ func (e *Editor) Snapshot(ctx context.Context) (*Editor, error) {
|
||||
if reader.Zip != nil {
|
||||
var data bytes.Buffer
|
||||
var count int64
|
||||
archive := zip.NewWriter(convertWriter{context: ctx, writer: &data, count: &count})
|
||||
archive := zip.NewWriter(convertWriter{ctx: ctx, writer: &data, count: &count})
|
||||
for _, file := range reader.Zip.File {
|
||||
if err := ctx.Err(); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user