Skip to content

Commit 254a6b9

Browse files
committed
ifd_builder.go: Very minor simplification
1 parent 1ae6e31 commit 254a6b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ifd_builder.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -1109,8 +1109,6 @@ func (ib *IfdBuilder) AddTagsFromExisting(ifd *Ifd, itevr *IfdTagEntryValueResol
11091109
} else {
11101110
// Non-IFD tag.
11111111

1112-
var value *IfdBuilderTagValue
1113-
11141112
valueContext := ifd.GetValueContext(ite)
11151113

11161114
var rawBytes []byte
@@ -1147,7 +1145,7 @@ func (ib *IfdBuilder) AddTagsFromExisting(ifd *Ifd, itevr *IfdTagEntryValueResol
11471145
log.PanicIf(err)
11481146
}
11491147

1150-
value = NewIfdBuilderTagValueFromBytes(rawBytes)
1148+
value := NewIfdBuilderTagValueFromBytes(rawBytes)
11511149

11521150
bt = NewBuilderTag(
11531151
ifd.IfdPath,

0 commit comments

Comments
 (0)