From 24cdbe8c3d78c2653bb3730c1c45e0a131165425 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 8 Aug 2019 09:24:01 +0000 Subject: [PATCH] Unlambda textContent call textContent already has the right function signature, no need to wrap it. --- cmd/mstdn/cmd_stream.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/mstdn/cmd_stream.go b/cmd/mstdn/cmd_stream.go index 258a658..9626769 100644 --- a/cmd/mstdn/cmd_stream.go +++ b/cmd/mstdn/cmd_stream.go @@ -44,9 +44,7 @@ func cmdStream(c *cli.Context) error { "nl": func(s string) string { return s + "\n" }, - "text": func(s string) string { - return textContent(s) - }, + "text": textContent, }).Parse(asFormat) if err != nil { return err