@@ -16,7 +16,6 @@ public IAnalyzeResponse Analyze(Func<AnalyzeDescriptor, AnalyzeDescriptor> analy
16
16
IRequest < AnalyzeRequestParameters > request = d ;
17
17
var text = request . RequestParameters . GetQueryStringValue < string > ( "text" ) ;
18
18
request . RequestParameters . RemoveQueryString ( "text" ) ;
19
- text . ThrowIfNullOrEmpty ( "No text specified to analyze" ) ;
20
19
return this . RawDispatch . IndicesAnalyzeDispatch < AnalyzeResponse > ( p , text ) ;
21
20
}
22
21
) ;
@@ -32,7 +31,6 @@ public IAnalyzeResponse Analyze(IAnalyzeRequest analyzeRequest)
32
31
IRequest < AnalyzeRequestParameters > request = d ;
33
32
var text = request . RequestParameters . GetQueryStringValue < string > ( "text" ) ;
34
33
request . RequestParameters . RemoveQueryString ( "text" ) ;
35
- text . ThrowIfNullOrEmpty ( "No text specified to analyze" ) ;
36
34
return this . RawDispatch . IndicesAnalyzeDispatch < AnalyzeResponse > ( p , text ) ;
37
35
}
38
36
) ;
@@ -48,7 +46,6 @@ public Task<IAnalyzeResponse> AnalyzeAsync(Func<AnalyzeDescriptor, AnalyzeDescri
48
46
IRequest < AnalyzeRequestParameters > request = d ;
49
47
var text = request . RequestParameters . GetQueryStringValue < string > ( "text" ) ;
50
48
request . RequestParameters . RemoveQueryString ( "text" ) ;
51
- text . ThrowIfNullOrEmpty ( "No text specified to analyze" ) ;
52
49
return this . RawDispatch . IndicesAnalyzeDispatchAsync < AnalyzeResponse > ( p , text ) ;
53
50
}
54
51
) ;
@@ -64,7 +61,6 @@ public Task<IAnalyzeResponse> AnalyzeAsync(IAnalyzeRequest analyzeRequest)
64
61
IRequest < AnalyzeRequestParameters > request = d ;
65
62
var text = request . RequestParameters . GetQueryStringValue < string > ( "text" ) ;
66
63
request . RequestParameters . RemoveQueryString ( "text" ) ;
67
- text . ThrowIfNullOrEmpty ( "No text specified to analyze" ) ;
68
64
return this . RawDispatch . IndicesAnalyzeDispatchAsync < AnalyzeResponse > ( p , text ) ;
69
65
}
70
66
) ;
0 commit comments