Skip to content

Commit 6b25f85

Browse files
committed
hack to prevent codecov from adding more codepaths
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 1ffc59e commit 6b25f85

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

plumbing/object/object.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,9 @@ func (s *Signature) decodeTimeAndTimeZone(b []byte) {
139139
}
140140

141141
timezone := string(b[tzStart : tzStart+timeZoneLength])
142-
tzhours, err := strconv.ParseInt(timezone[0:3], 10, 64)
143-
if err != nil {
144-
return
145-
}
146-
tzmins, err := strconv.ParseInt(timezone[3:], 10, 64)
147-
if err != nil {
142+
tzhours, err1 := strconv.ParseInt(timezone[0:3], 10, 64)
143+
tzmins, err2 := strconv.ParseInt(timezone[3:], 10, 64)
144+
if err1 != nil || err2 != nil {
148145
return
149146
}
150147
if tzhours < 0 {

0 commit comments

Comments
 (0)