From 604799735cab40d1cd6a235d474fa6a5b65dedda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Wed, 29 Jul 2020 22:54:37 +0200 Subject: [PATCH] :fire: unused `errorStub` struct --- command/testing.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/command/testing.go b/command/testing.go index e12cc38e3..367d510bb 100644 --- a/command/testing.go +++ b/command/testing.go @@ -2,7 +2,6 @@ package command import ( "bytes" - "errors" "fmt" "github.com/cli/cli/api" @@ -102,18 +101,6 @@ func RunCommand(args string) (*cmdOut, error) { return &cmdOut{&outBuf, &errBuf}, err } -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 stubTerminal(connected bool) func() { isTerminal := utils.IsTerminal utils.IsTerminal = func(_ interface{}) bool {