Skip to content

Commit 37e66e9

Browse files
committed
exif: remove shouldExclude and shouldInclude
Removed those checks because they are already made in the Decode function #13146
1 parent dbe24f0 commit 37e66e9

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

resources/images/exif/exif.go

-18
Original file line numberDiff line numberDiff line change
@@ -221,36 +221,18 @@ func (d *Decoder) Decode(filename string, format imagemeta.ImageFormat, r io.Rea
221221

222222
tagsXmp := make(map[string]any)
223223
for k, v := range tagInfos.XMP() {
224-
if d.shouldExclude(k) {
225-
continue
226-
}
227-
if !d.shouldInclude(k) {
228-
continue
229-
}
230224
tagsXmp[k] = v.Value
231225
tags[k] = v.Value
232226
}
233227

234228
tagsIptc := make(map[string]any)
235229
for k, v := range tagInfos.IPTC() {
236-
if d.shouldExclude(k) {
237-
continue
238-
}
239-
if !d.shouldInclude(k) {
240-
continue
241-
}
242230
tagsIptc[k] = v.Value
243231
tags[k] = v.Value
244232
}
245233

246234
tagsExif := make(map[string]any)
247235
for k, v := range tagInfos.EXIF() {
248-
if d.shouldExclude(k) {
249-
continue
250-
}
251-
if !d.shouldInclude(k) {
252-
continue
253-
}
254236
tagsExif[k] = v.Value
255237
tags[k] = v.Value
256238
}

0 commit comments

Comments
 (0)