Skip to content

Commit

Permalink
style(translate.go): add missing newline for better code readability …
Browse files Browse the repository at this point in the history
…between logical sections
  • Loading branch information
bounoable committed Apr 27, 2024
1 parent 29cca52 commit 05b64ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func (t *Translator) Translate(ctx context.Context, params TranslateParams) (str
}

docChunks := chunks.Chunks(params.Document, params.SplitChunks)

result := make([]string, 0, len(docChunks))
for _, chunk := range docChunks {
translated, err := t.translateChunk(ctx, chunk, params)
Expand Down

0 comments on commit 05b64ce

Please sign in to comment.