aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object
diff options
context:
space:
mode:
authorAndrew Thornton <art27@cantab.net>2020-02-23 10:52:49 +0000
committerAndrew Thornton <art27@cantab.net>2020-02-23 10:52:49 +0000
commit6b25f8506c2ef719f89e728aba652f3c6e3ca6e6 (patch)
treea732a40b5fc4aeb7212f3ca02833bf1eb2b00cea /plumbing/object
parent1ffc59ee1161f9330058dc115e3589b4998ad09a (diff)
downloadgo-git-6b25f8506c2ef719f89e728aba652f3c6e3ca6e6.tar.gz
hack to prevent codecov from adding more codepaths
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'plumbing/object')
-rw-r--r--plumbing/object/object.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/plumbing/object/object.go b/plumbing/object/object.go
index 0d891ad..c48a18d 100644
--- a/plumbing/object/object.go
+++ b/plumbing/object/object.go
@@ -139,12 +139,9 @@ func (s *Signature) decodeTimeAndTimeZone(b []byte) {
}
timezone := string(b[tzStart : tzStart+timeZoneLength])
- tzhours, err := strconv.ParseInt(timezone[0:3], 10, 64)
- if err != nil {
- return
- }
- tzmins, err := strconv.ParseInt(timezone[3:], 10, 64)
- if err != nil {
+ tzhours, err1 := strconv.ParseInt(timezone[0:3], 10, 64)
+ tzmins, err2 := strconv.ParseInt(timezone[3:], 10, 64)
+ if err1 != nil || err2 != nil {
return
}
if tzhours < 0 {