summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-06-06 02:52:59 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-06-06 02:52:59 +0200
commita7aee9fa36191a539312d403e4a6dcb4b61cfad3 (patch)
tree8a22cee669f737a3cee61e992189e0468420c2e3
parent746a09a5854b9ce17e40caead51e1a42c2721bb1 (diff)
Fix function name
-rw-r--r--cmd/exttmpl/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/exttmpl/main.go b/cmd/exttmpl/main.go
index 299bf2a..332d9d5 100644
--- a/cmd/exttmpl/main.go
+++ b/cmd/exttmpl/main.go
@@ -113,7 +113,7 @@ func process(tmplMsgs *[]pipeline.Message, node parse.Node) {
}
for _, cmd := range an.Pipe.Cmds {
- if !hasIndent(cmd, transfn) {
+ if !hasIdent(cmd, transfn) {
continue
}
for _, arg := range cmd.Args {
@@ -134,7 +134,7 @@ func process(tmplMsgs *[]pipeline.Message, node parse.Node) {
}
}
-func hasIndent(cmd *parse.CommandNode, s string) bool {
+func hasIdent(cmd *parse.CommandNode, s string) bool {
if len(cmd.Args) == 0 {
return false
}