diff --git a/go.mod b/go.mod index 3bed51f..5f9b822 100644 --- a/go.mod +++ b/go.mod @@ -13,5 +13,5 @@ require ( github.com/atc0005/go-nagios v0.8.2 github.com/google/go-cmp v0.5.8 github.com/rs/zerolog v1.26.1 - github.com/sanity-io/litter v1.5.4 + github.com/sanity-io/litter v1.5.5 ) diff --git a/go.sum b/go.sum index 48679aa..071e301 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77 github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.26.1 h1:/ihwxqH+4z8UxyI70wM1z9yCvkWcfz/a3mj48k/Zngc= github.com/rs/zerolog v1.26.1/go.mod h1:/wSSJWX7lVrsOwlbyTRSOJvqRlc+WjWlfes+CiJ+tmc= -github.com/sanity-io/litter v1.5.4 h1:3Fvo2hKVtmA0XFIHkFQ4cHxA0EemTqBA03WttcB3YZA= -github.com/sanity-io/litter v1.5.4/go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U= +github.com/sanity-io/litter v1.5.5 h1:iE+sBxPBzoK6uaEP5Lt3fHNgpKcHXc/A2HGETy0uJQo= +github.com/sanity-io/litter v1.5.5/go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U= github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312 h1:UsFdQ3ZmlzS0BqZYGxvYaXvFGUbCmPGy8DM7qWJJiIQ= github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= diff --git a/vendor/github.com/sanity-io/litter/pointers.go b/vendor/github.com/sanity-io/litter/pointers.go index d5b92bc..74b9a0f 100644 --- a/vendor/github.com/sanity-io/litter/pointers.go +++ b/vendor/github.com/sanity-io/litter/pointers.go @@ -118,8 +118,7 @@ func (pv *pointerVisitor) consider(v reflect.Value) { // Now descend into any children of this value switch v.Kind() { case reflect.Slice, reflect.Array: - numEntries := v.Len() - for i := 0; i < numEntries; i++ { + for i := 0; i < v.Len(); i++ { pv.consider(v.Index(i)) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 26accf4..0425df5 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -14,6 +14,6 @@ github.com/rs/zerolog github.com/rs/zerolog/internal/cbor github.com/rs/zerolog/internal/json github.com/rs/zerolog/log -# github.com/sanity-io/litter v1.5.4 +# github.com/sanity-io/litter v1.5.5 ## explicit; go 1.16 github.com/sanity-io/litter