Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 79b50ad

Browse files
Remove unused variables
1 parent d95549c commit 79b50ad

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

cmd/webhook/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ var (
2222
kubeconfig = flag.String("kubeconfig", "", "If set, use this kubeconfig to connect to kubernetes")
2323
baseURL = flag.String("gh-base-url", "", "GitHub Enterprise: Base URL")
2424
uploadURL = flag.String("gh-upload-url", "", "GitHub Enterprise: Upload URL")
25-
gitAddress = flag.String("git", "[email protected]", "Git address")
2625
debug = flag.Bool("debug", false, "Enable debug logging")
2726
dryRun = flag.Bool("dry", false, "Dry run; Do not apply resouce manifest")
2827
insecure = flag.Bool("insecure", false, "Allow omitting WEBHOOK_SECRET for testing")

handler_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ func (k *mockKubernetesClient) Apply(obj runtime.Object, namespace string) error
2525
}
2626

2727
type mockLoader struct {
28-
obj runtime.Object
29-
repo string
30-
path string
31-
ref string
28+
obj runtime.Object
3229
}
3330

3431
func (l *mockLoader) Load(ctx context.Context, repo, path, ref string) (runtime.Object, error) {

0 commit comments

Comments
 (0)