diff options
| author | 2026-05-16 20:18:40 +0000 | |
|---|---|---|
| committer | 2026-05-16 20:18:40 +0000 | |
| commit | baacc88a98f7c33b66ebb16ee0614ef30de309ea (patch) | |
| tree | 8a83a595ee4beeec370ca9e671c3a969deaf9fbd | |
| parent | object/*: Fix lints (diff) | |
| signature | No signature | |
object/signature: Just use a byte from the start
| -rw-r--r-- | object/signature/append.go | 4 |
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)) |
