Skip to content

Commit

Permalink
feat: Intern only string
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Sep 21, 2024
1 parent 2bcbe14 commit 9629fb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/metadata/exif.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ func New(ctx context.Context, config *Config, storageService absto.Storage, mete
}

for key, value := range metadata.Exif.Data {
metadata.Exif.Data[key] = unique.Make(value).Value()
switch value.(type) {
case string:
metadata.Exif.Data[key] = unique.Make(value).Value()
}
}

return metadata, err
Expand Down

0 comments on commit 9629fb5

Please sign in to comment.