aboutsummaryrefslogtreecommitdiff
path: root/object
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-16 20:18:40 +0000
committerGravatar Runxi Yu2026-05-16 20:18:40 +0000
commitbaacc88a98f7c33b66ebb16ee0614ef30de309ea (patch)
tree8a83a595ee4beeec370ca9e671c3a969deaf9fbd /object
parentobject/*: Fix lints (diff)
signatureNo signature
object/signature: Just use a byte from the start
Diffstat (limited to 'object')
-rw-r--r--object/signature/append.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/object/signature/append.go b/object/signature/append.go
index cf4e9314..fd84607e 100644
--- a/object/signature/append.go
+++ b/object/signature/append.go
@@ -17,7 +17,7 @@ func (signature Signature) AppendTo(dst []byte) []byte {
offset := signature.OffsetMinutes
- sign := '+'
+ var sign byte = '+'
if offset < 0 {
sign = '-'
offset = -offset
@@ -26,7 +26,7 @@ func (signature Signature) AppendTo(dst []byte) []byte {
hh := offset / 60
mm := offset % 60
- dst = append(dst, byte(sign))
+ dst = append(dst, sign)
dst = append(dst, byte('0'+hh/10), byte('0'+hh%10))
dst = append(dst, byte('0'+mm/10), byte('0'+mm%10))