Skip to content

Commit 964f48e

Browse files
committed
Add linter 'gofumpt'
1 parent 3bb9df0 commit 964f48e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ linters:
33
enable:
44
- errcheck
55
- godot
6+
- gofumpt
67
- goimports
78
- gosimple
89
- govet
@@ -19,6 +20,8 @@ linters:
1920
linters-settings:
2021
goimports:
2122
local-prefixes: github.com/xorcare/testing-go-code-with-postgres
23+
gofumpt:
24+
module-path: github.com/xorcare/testing-go-code-with-postgres
2225
unused:
2326
field-writes-are-uses: false
2427
post-statements-are-reads: true

user_repository.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ func (r *UserRepository) CreateUser(ctx context.Context, user User) error {
5151
user.Username,
5252
user.CreatedAt,
5353
)
54-
5554
if err != nil {
5655
const format = "failed insertion of User to database: %v"
5756
return fmt.Errorf(format, err)

0 commit comments

Comments
 (0)