diff --git a/custom_actions.go b/custom_actions.go index fab4cd4..ffa087e 100644 --- a/custom_actions.go +++ b/custom_actions.go @@ -128,7 +128,6 @@ func checkCustomActionUsage() { } func makeCustomActionsHeader() { - var outputActionRegex = regexp.MustCompile(`(?:must)?[o|O]utput(?:OrClipboard)?\((.*?)\)`) var customActionsHeader strings.Builder customActionsHeader.WriteString("if ShortcutInput {\n") customActionsHeader.WriteString(" const inputType = typeOf(ShortcutInput)\n") @@ -167,13 +166,7 @@ func makeCustomActionsHeader() { } customActionsHeader.WriteString(customAction.body) - - if !outputActionRegex.MatchString(customAction.body) { - customActionsHeader.WriteString("\noutput(nil)") - } - customActionsHeader.WriteRune('\n') - customActionsHeader.WriteString(" }\n") }