mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 07:10:29 +08:00
Go: fix warnings (#17738)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -14,13 +14,12 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
// Internal chunk execution entrypoint used by production callers.
|
||||
package chunk
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Run executes the internal chunk steps against `text` using typed
|
||||
// options. The sequence is preprocess -> split -> postprocess.
|
||||
// options. The sequence is pre-process -> split -> postprocess.
|
||||
func Run(text string, opts ChunkOptions) (*ChunkContext, error) {
|
||||
if err := opts.validate(); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user