Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaznocha committed Aug 12, 2021
1 parent 95b0115 commit b99a0cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ linters:
- gofmt
- gofumpt
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
Expand All @@ -91,6 +90,7 @@ linters:
- nolintlint
- prealloc
- predeclared
- revive
- rowserrcheck
- staticcheck
- structcheck
Expand Down
10 changes: 5 additions & 5 deletions linter/protoBuffErrors.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (p *protoBufErrors) lintProtoMessage(
parentPath []int32,
protoMessage *descriptorpb.DescriptorProto,
) {
path := append(
path := append( //nolint:gocritic
parentPath,
pathType,
pathIndex,
Expand Down Expand Up @@ -50,7 +50,7 @@ func (p *protoBufErrors) lintProtoField(
parentPath []int32,
messageField *descriptorpb.FieldDescriptorProto,
) {
path := append(
path := append( //nolint:gocritic
parentPath,
pathMessageField,
pathIndex,
Expand All @@ -71,7 +71,7 @@ func (p *protoBufErrors) lintProtoEnumType(
parentPath []int32,
protoEnum *descriptorpb.EnumDescriptorProto,
) {
path := append(
path := append( //nolint:gocritic
parentPath,
pathType,
pathIndex,
Expand All @@ -95,7 +95,7 @@ func (p *protoBufErrors) lintProtoEnumValue(
parentPath []int32,
enumVal *descriptorpb.EnumValueDescriptorProto,
) {
path := append(
path := append( //nolint:gocritic
parentPath,
pathEnumValue,
pathIndex,
Expand Down Expand Up @@ -137,7 +137,7 @@ func (p *protoBufErrors) lintProtoRPCMethod(
parentPath []int32,
serviceMethod *descriptorpb.MethodDescriptorProto,
) {
path := append(
path := append( //nolint:gocritic
parentPath,
pathRPCMethod,
pathIndex,
Expand Down

0 comments on commit b99a0cc

Please sign in to comment.