mirror of
https://github.com/soypat/lneto.git
synced 2026-09-10 00:29:34 +00:00
chore: bump minimum Go version to 1.24 (#85)
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
This commit is contained in:
+1
-1
@@ -489,7 +489,7 @@ func NewName(domain string) (Name, error) {
|
||||
// Returns an empty Name if n exceeds the number of labels.
|
||||
func (n Name) TrimLabels(skip int) Name {
|
||||
off := 0
|
||||
for i := 0; i < skip; i++ {
|
||||
for range skip {
|
||||
if off >= len(n.data) {
|
||||
return Name{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user