Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardem committed Oct 7, 2024
1 parent d86480a commit 14083d1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.23'

- name: Build API
run: go build -C api
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.23'
cache: false
- name: golangci-lint for API
uses: golangci/golangci-lint-action@v6
Expand Down
2 changes: 1 addition & 1 deletion backend/users/api/PostUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func SaveOrganizationAndUserWithContext(ctx context.Context, db *sql.DB, user se

if err != nil {
_ = tx.Rollback()
log.Errorf(err.Error())
log.Error(err.Error())
return false, nil
}

Expand Down
8 changes: 4 additions & 4 deletions backend/users/cli/command/encrypt/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ var issueDataKey cli.ActionFunc = func(c *cli.Context) error {
)

if err != nil {
log.Errorf(err.Error())
log.Error(err.Error())

continue
}

log.Debugf("Issue data key for the organization uuid %s", uuid)
encryptedDataKey, err = kms.IssueDataKeyWithContext(c.Context)
if err != nil {
log.Errorf(err.Error())
log.Error(err.Error())

return err
}
Expand All @@ -59,7 +59,7 @@ var issueDataKey cli.ActionFunc = func(c *cli.Context) error {
updateQuery := "UPDATE organizations SET `data_key` = ? WHERE uuid = ?"
stmt, err = db.Prepare(updateQuery)
if err != nil {
log.Errorf(err.Error())
log.Error(err.Error())

return err
}
Expand All @@ -71,7 +71,7 @@ var issueDataKey cli.ActionFunc = func(c *cli.Context) error {
)

if err != nil {
log.Errorf(err.Error())
log.Error(err.Error())

return err
}
Expand Down
2 changes: 1 addition & 1 deletion backend/users/services/kms/kms.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func IssueDataKeyWithContext(ctx context.Context) ([]byte, error) {
})

if err != nil {
log.Errorf("data key generation error: " + err.Error())
log.Error("data key generation error: " + err.Error())

return nil, err
}
Expand Down

0 comments on commit 14083d1

Please sign in to comment.