Unlambda textContent call
textContent already has the right function signature, no need to wrap it.
This commit is contained in:
parent
8a48862adc
commit
08b7fb32b1
1 changed files with 1 additions and 3 deletions
|
@ -44,9 +44,7 @@ func cmdStream(c *cli.Context) error {
|
||||||
"nl": func(s string) string {
|
"nl": func(s string) string {
|
||||||
return s + "\n"
|
return s + "\n"
|
||||||
},
|
},
|
||||||
"text": func(s string) string {
|
"text": textContent,
|
||||||
return textContent(s)
|
|
||||||
},
|
|
||||||
}).Parse(asFormat)
|
}).Parse(asFormat)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue