Skip to content

Commit

Permalink
refactor: remove unused context
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnorris committed Aug 31, 2021
1 parent fb9e488 commit 014f0e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions internal/releaseapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package releaseapi

import (
"archive/zip"
"context"
"encoding/json"
"fmt"
"io"
Expand Down Expand Up @@ -51,7 +50,7 @@ func NewClient(cacheDir string) *Client {
return &Client{cacheDir, httpClient}
}

func (c *Client) ListReleases(ctx context.Context) (ReleaseIndex, error) {
func (c *Client) ListReleases() (ReleaseIndex, error) {
var releaseIndex ReleaseIndex

log.Printf("downloading Terraform release index")
Expand Down
3 changes: 1 addition & 2 deletions internal/wrapper/wrapper.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package wrapper

import (
"context"
"fmt"
"log"
"os"
Expand Down Expand Up @@ -40,7 +39,7 @@ func RunTerraform(args []string) (int, error) {

client := releaseapi.NewClient(cacheDirectory)

releaseIndex, err := client.ListReleases(context.TODO())
releaseIndex, err := client.ListReleases()

if err != nil {
return 1, err
Expand Down

0 comments on commit 014f0e1

Please sign in to comment.