diff options
author | xuri <xuri.me@gmail.com> | 2022-05-18 23:15:24 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-05-18 23:15:24 +0800 |
commit | 8f16a76781fb8f47094492c38a02c2cdc4ce5013 (patch) | |
tree | 12a9933300ba1f196120e530091e4464e1a6bc35 /picture.go | |
parent | be5a4033c0c7de6247c02dc3ab76b634ac19d4c6 (diff) |
This fixes a part of staticcheck issues and updates the code of conduct
Update example for set cell hyperlinks with `HyperlinkOpts`
Diffstat (limited to 'picture.go')
-rw-r--r-- | picture.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -371,9 +371,7 @@ func (f *File) setContentTypePartImageExtensions() { content.Lock() defer content.Unlock() for _, file := range content.Defaults { - if _, ok := imageTypes[file.Extension]; ok { - delete(imageTypes, file.Extension) - } + delete(imageTypes, file.Extension) } for extension, prefix := range imageTypes { content.Defaults = append(content.Defaults, xlsxDefault{ |