Skip to content

Commit 39740ae

Browse files
committed
Remove test endpoint in package presigned upload example
1 parent 46bf021 commit 39740ae

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

examples/packages/create/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ func main() {
3131
log.Fatalf("opening file %s failed: %v", *filePath, err)
3232
}
3333

34-
log.Println(file.Name())
35-
3634
pkg, _, err := client.PackagesService.Create(context.Background(), *org, *registrySlug, buildkite.CreatePackageInput{Package: file})
3735
if err != nil {
3836
log.Fatalf("Creating package failed: %v", err)

examples/packages/create_presigned_upload/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ var (
1919
func main() {
2020
kingpin.Parse()
2121

22-
client, err := buildkite.NewOpts(
23-
buildkite.WithTokenAuth(*apiToken),
24-
buildkite.WithBaseURL("http://api.buildkite.localhost"),
25-
)
22+
client, err := buildkite.NewOpts(buildkite.WithTokenAuth(*apiToken))
2623
if err != nil {
2724
log.Fatalf("creating buildkite API client failed: %v", err)
2825
}

0 commit comments

Comments
 (0)