From cb07b82eeef8566bcf758ff68ee352c0f97f66fe Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Sat, 30 Sep 2023 00:28:19 +0300 Subject: [PATCH] lint fix --- pkg/storage/uuid_field_index.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/storage/uuid_field_index.go b/pkg/storage/uuid_field_index.go index 987d21b1..e3a60eee 100644 --- a/pkg/storage/uuid_field_index.go +++ b/pkg/storage/uuid_field_index.go @@ -67,7 +67,7 @@ func (u *UUIDFieldIndex) parseString(s string, enforceLength bool) ([]byte, erro if enforceLength && l != 36 { return nil, fmt.Errorf("UUID must be 36 characters") } else if l > 36 { - return nil, fmt.Errorf("Invalid UUID length. UUID have 36 characters; got %d", l) + return nil, fmt.Errorf("invalid UUID length. UUID have 36 characters; got %d", l) } hyphens := strings.Count(s, "-") @@ -79,12 +79,12 @@ func (u *UUIDFieldIndex) parseString(s string, enforceLength bool) ([]byte, erro sanitized := strings.Replace(s, "-", "", -1) sanitizedLength := len(sanitized) if sanitizedLength%2 != 0 { - return nil, fmt.Errorf("Input (without hyphens) must be even length") + return nil, fmt.Errorf("input (without hyphens) must be even length") } dec, err := hex.DecodeString(sanitized) if err != nil { - return nil, fmt.Errorf("Invalid UUID: %v", err) + return nil, fmt.Errorf("invalid UUID: %v", err) } return dec, nil