Skip to content

Commit a880e14

Browse files
committed
fmt
1 parent 8094eb6 commit a880e14

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

pkg/hookd/database/deployment.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (db *Database) Deployment(ctx context.Context, id string) (*Deployment, err
139139
}
140140

141141
func (db *Database) WriteDeployment(ctx context.Context, deployment Deployment) error {
142-
query := `
142+
query := `
143143
INSERT INTO deployment (id, team, created, github_id, github_repository, cluster)
144144
VALUES ($1, $2, $3, $4, $5, $6)
145145
ON CONFLICT (id) DO UPDATE
@@ -254,7 +254,7 @@ func (db *Database) DeploymentResources(ctx context.Context, deploymentID string
254254
}
255255

256256
func (db *Database) WriteDeploymentResource(ctx context.Context, resource DeploymentResource) error {
257-
query := `
257+
query := `
258258
INSERT INTO deployment_resource (id, deployment_id, index, "group", version, kind, name, namespace)
259259
VALUES ($1, $2, $3, $4, $5, $6, $7, $8);
260260
`

pkg/hookd/middleware/contexttools.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
)
77

88
type requestContextValidIdentifier string
9+
910
const (
1011
contextKeyEmail requestContextValidIdentifier = "email"
1112
contextKeyGroups requestContextValidIdentifier = "groups"

tools.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package tools
66
import (
77
_ "github.com/vektra/mockery/v2"
88
_ "golang.org/x/vuln/cmd/govulncheck"
9+
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
10+
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
911
_ "honnef.co/go/tools/cmd/staticcheck"
1012
_ "mvdan.cc/gofumpt"
11-
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
12-
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
1313
)

0 commit comments

Comments
 (0)