Skip to content

Commit

Permalink
small fix in tink template list
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gahlot <gauravgahlot0107@gmail.com>
  • Loading branch information
gauravgahlot committed Dec 28, 2020
1 parent 0c8a6fc commit a1dac32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tink-cli/cmd/template/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ func listTemplates() {

var tmp *template.WorkflowTemplate
for tmp, err = list.Recv(); err == nil && tmp.Name != ""; tmp, err = list.Recv() {
printOutput(t, tmp)
printOutput(tmp)
}

if err != nil && err != io.EOF {
log.Fatal(err)
}
}

func printOutput(t table.Writer, tmp *template.WorkflowTemplate) {
func printOutput(tmp *template.WorkflowTemplate) {
if quiet {
fmt.Println(tmp.Id)
} else {
Expand Down

0 comments on commit a1dac32

Please sign in to comment.