mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
accd0a2973
commit
fef7e75920
8 files changed
+266
-143
No files matched your search
@@ -78,8 +78,11 @@ func (e *Editor) compressResourceParts(parts map[string][]byte, reader *Reader,
|
||||
return err
|
||||
}
|
||||
}
|
||||
resource, safe := refs.scan(input, name)
|
||||
resource, safe := refs.scan(imageInput{ReadCloser: input, context: e.output.ctx}, name)
|
||||
input.Close()
|
||||
if err := e.output.ctx.Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
if !safe {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user