Skip to content

Commit

Permalink
undo change to printer
Browse files Browse the repository at this point in the history
  • Loading branch information
Phani Raj committed Aug 13, 2021
1 parent 036511d commit c930b21
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions internal/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ func (f *Format) Type() string {
return "string"
}

type SelfPrinter interface {
Print()
}

// Printer is used to print information to the defined output.
type Printer struct {
humanOut io.Writer
Expand Down Expand Up @@ -198,12 +194,6 @@ func (p *Printer) PrintResource(v interface{}) error {
}
fmt.Fprintln(out, buf)
return nil
default:
if i, ok := v.(SelfPrinter); ok {
i.Print()
} else {
return fmt.Errorf("unknown printer.Format: %T", *p.format)
}
}

return fmt.Errorf("unknown printer.Format: %T", *p.format)
Expand Down

0 comments on commit c930b21

Please sign in to comment.