skip deprecated

This commit is contained in:
Celogeek 2024-04-28 21:35:48 +02:00
parent 8233d067ef
commit 79e20ca622
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func (e *EPUBZip) Close() error {
// This will be valid with epubcheck tools. // This will be valid with epubcheck tools.
func (e *EPUBZip) WriteMagic() error { func (e *EPUBZip) WriteMagic() error {
t := time.Now().UTC() t := time.Now().UTC()
//goland:noinspection GoDeprecation
fh := &zip.FileHeader{ fh := &zip.FileHeader{
Name: "mimetype", Name: "mimetype",
Method: zip.Store, Method: zip.Store,

View File

@ -52,6 +52,7 @@ func CompressImage(filename string, format string, img image.Image, quality int)
} }
t := time.Now() t := time.Now()
//goland:noinspection GoDeprecation
return &ZipImage{ return &ZipImage{
&zip.FileHeader{ &zip.FileHeader{
Name: filename, Name: filename,