From 690b0cbb2a220ef4179a0f9f34725328fb8c73f8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 26 Jan 2023 23:36:55 -0700 Subject: .golangci.yml: Turn on 'godot', fix --- borrowed_misc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'borrowed_misc.go') diff --git a/borrowed_misc.go b/borrowed_misc.go index ab9338f..b84158b 100644 --- a/borrowed_misc.go +++ b/borrowed_misc.go @@ -12,7 +12,7 @@ import ( "unicode" ) -// from encode.go +// isEmptyValue is borrowed from encode.go. func isEmptyValue(v reflect.Value) bool { switch v.Kind() { case reflect.Array, reflect.Map, reflect.Slice, reflect.String: @@ -31,7 +31,7 @@ func isEmptyValue(v reflect.Value) bool { return false } -// from encode.go +// isValidTag is borrowed from encode.go. func isValidTag(s string) bool { if s == "" { return false -- cgit v1.2.3