ifd_tag_entry.go: Minor change to use own field directly

for/master
Dustin Oprea 2020-01-11 02:38:37 -05:00
parent 1a430b7457
commit 556a15dbee
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func (ite *IfdTagEntry) valueOffset_() uint32 {
func (ite *IfdTagEntry) GetRawBytes() (rawBytes []byte, err error) {
valueContext := ite.getValueContext()
if ite.TagType() == exifcommon.TypeUndefined {
if ite.tagType == exifcommon.TypeUndefined {
value, err := exifundefined.Decode(valueContext)
if err != nil {
if err == exifcommon.ErrUnhandledUnknownTypedTag {