Skip to content

Commit

Permalink
fix: lint 対応
Browse files Browse the repository at this point in the history
  • Loading branch information
kokoichi206 committed Sep 10, 2023
1 parent 34abc45 commit 7cbd4f2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21

- name: Run Test
run: |
Expand Down
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ linters-settings:
settings:
mnd:
ignored-numbers: "0o666,0o777"
funlen:
lines: 77
statements: 50
linters:
enable-all: true
disable:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/android-project-46group/core-api

go 1.19
go 1.21

require (
github.com/DATA-DOG/go-sqlmock v1.5.0
Expand Down
1 change: 1 addition & 0 deletions repository/database/member.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func (d *database) ListMembers(ctx context.Context) ([]*model.Member, error) {
if err != nil {
return nil, fmt.Errorf("failed to conn.Querytext: %w", err)
}

defer func() {
if err := rows.Close(); err != nil {
d.logger.Warnf(ctx, "failed to rows.Close: ", err)
Expand Down
1 change: 1 addition & 0 deletions util/logger/file_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewFileLogger(
}

return logger, func() error {
//nolint:wrapcheck
return logfile.Close()
}, nil
}
Expand Down

0 comments on commit 7cbd4f2

Please sign in to comment.