Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark authored and orymate committed Dec 19, 2018
1 parent e7cb111 commit ae6a6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/formatting/formatting.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ func NewColumn(name string) *Column {

func NamedColumn(name, fieldName string) *Column {
tpl := fmt.Sprintf("{{.%s}}", fieldName)
col, err := CustomColumn(name, fieldName, tpl)
col, err := CustomColumn(name, tpl)
if err != nil {
panic(err)
}

return col
}

func CustomColumn(name, fieldName, tpl string) (*Column, error) {
func CustomColumn(name, tpl string) (*Column, error) {
parsedTemplate, err := template.New(name).Parse(tpl)
if err != nil {
return nil, err
Expand Down

0 comments on commit ae6a6cd

Please sign in to comment.