Remove unused functions and unexport internal sentinel error

This commit is contained in:
2026-02-09 00:06:01 +04:00
parent 6a713ef241
commit c1584eb47b
3 changed files with 15 additions and 49 deletions

View File

@@ -145,22 +145,6 @@ func ValidateScript(ctx context.Context, source string, engineType EngineType) e
return nil
}
// ValidateScripts validates multiple script sources.
// It can return the following errors:
// - types.ErrScriptEmpty
// - types.ErrScriptTransformMissing
// - types.ScriptLoadError
// - types.ScriptExecutionError
// - types.ScriptUnknownEngineError
func ValidateScripts(ctx context.Context, sources []string, engineType EngineType) error {
for _, src := range sources {
if err := ValidateScript(ctx, src, engineType); err != nil {
return err
}
}
return nil
}
// fetchURL downloads content from an HTTP/HTTPS URL.
// It can return the following errors:
// - types.HTTPFetchError