Skip to content

Commit

Permalink
chore(lint): upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Feb 12, 2024
1 parent 274f36c commit 4017d3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ linters-settings:
linters:
disable-all: true
enable:
- deadcode
- dogsled
- dupl
- errcheck
Expand All @@ -45,23 +44,19 @@ linters:
- gocyclo
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- gochecknoglobals
- gocognit
Expand Down
2 changes: 1 addition & 1 deletion type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4017d3d

Please sign in to comment.