From cb897fd7e2b953bba02ddaff0d5a241f0050fc49 Mon Sep 17 00:00:00 2001 From: Devon Romanko <28825608+dpromanko@users.noreply.github.com> Date: Wed, 27 Jan 2021 08:04:57 -0500 Subject: [PATCH] remove unused errorStub from 'pr checkout' test --- pkg/cmd/pr/checkout/checkout_test.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pkg/cmd/pr/checkout/checkout_test.go b/pkg/cmd/pr/checkout/checkout_test.go index a92a64ccd..ed1a4722e 100644 --- a/pkg/cmd/pr/checkout/checkout_test.go +++ b/pkg/cmd/pr/checkout/checkout_test.go @@ -3,7 +3,6 @@ package checkout import ( "bytes" "encoding/json" - "errors" "io/ioutil" "net/http" "testing" @@ -22,18 +21,6 @@ import ( "github.com/stretchr/testify/assert" ) -type errorStub struct { - message string -} - -func (s errorStub) Output() ([]byte, error) { - return nil, errors.New(s.message) -} - -func (s errorStub) Run() error { - return errors.New(s.message) -} - func runCommand(rt http.RoundTripper, remotes context.Remotes, branch string, cli string) (*test.CmdOut, error) { io, _, stdout, stderr := iostreams.Test()