summaryrefslogtreecommitdiff
path: root/internal/audio/validate.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-02 21:47:12 +0300
committerPaul Buetow <paul@buetow.org>2026-04-02 21:47:12 +0300
commit993b2efe63e221cee550756770894c9c58474d25 (patch)
tree126b0dad9e1225c575f2521f29c6ad68556f4056 /internal/audio/validate.go
parentdac35c77721c97f093a44d98164b38534452de9f (diff)
task 00g/00k/00h/008: gofmt, remove ProviderWithFallback, stdlib helpers, shared prompt
- task 00g: fix gofmt violations (trailing whitespace, missing newlines, indentation) in 8 files; all pass gofmt -l now - task 00k: remove unused ProviderWithFallback and its tests (YAGNI — no production caller existed; voice-level fallback via RunWithVoiceFallbacks already covers the real use case) - task 00h: replace private splitLines/trimSpace/isSpace helpers in internal/batch/processor.go with strings.Split+ReplaceAll and strings.TrimSpace from the stdlib; remove the now-redundant tests - task 008: extract buildEducationalPrompt into internal/image/prompt.go so the prompt-assembly policy (scene truncation cascade, char limit) lives in one place; both OpenAIClient and NanoBananaClient delegate to it Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/audio/validate.go')
-rw-r--r--internal/audio/validate.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/audio/validate.go b/internal/audio/validate.go
index db042bd..e200cfa 100644
--- a/internal/audio/validate.go
+++ b/internal/audio/validate.go
@@ -11,7 +11,7 @@ func ValidateBulgarianText(text string) error {
if strings.TrimSpace(text) == "" {
return fmt.Errorf("text cannot be empty")
}
-
+
hasCyrillic := false
for _, r := range text {
if unicode.In(r, unicode.Cyrillic) {
@@ -19,10 +19,10 @@ func ValidateBulgarianText(text string) error {
break
}
}
-
+
if !hasCyrillic {
return fmt.Errorf("text must contain Cyrillic characters")
}
-
+
return nil
-} \ No newline at end of file
+}