From 4017d3d71c0eb2b641d6ba1b4bd67bced4e48dbd Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Mon, 12 Feb 2024 10:34:57 +0300 Subject: [PATCH] chore(lint): upd --- .golangci.yml | 5 ----- type.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index d52e5e1..daeb5ef 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,7 +35,6 @@ linters-settings: linters: disable-all: true enable: - - deadcode - dogsled - dupl - errcheck @@ -45,7 +44,6 @@ linters: - gocyclo - gofmt - goimports - - golint - gosec - gosimple - govet @@ -53,15 +51,12 @@ linters: - lll - misspell - nakedret - - scopelint - staticcheck - - structcheck - stylecheck - typecheck - unconvert - unparam - unused - - varcheck - whitespace - gochecknoglobals - gocognit diff --git a/type.go b/type.go index 63a190b..d3691ad 100644 --- a/type.go +++ b/type.go @@ -87,7 +87,7 @@ func (p *Type) Parse(s string) error { } // Bare types starts from lowercase. - if len(p.Name) > 0 && !p.Percent { + if p.Name != "" && !p.Percent { p.Bare = p.Name[0:1] == strings.ToLower(p.Name[0:1]) } return nil