File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/WeihanLi.Common/Template Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public Task<TemplateRenderContext> ParseAsync(string text)
31
31
var pipeValue = match . Groups [ "Pipe" ] ? . Value . Trim ( ) ;
32
32
if ( ! string . IsNullOrEmpty ( pipeValue ) )
33
33
{
34
- var pipeIndex = pipeValue . IndexOf ( '|' ) ;
34
+ var pipeIndex = pipeValue ! . IndexOf ( '|' ) ;
35
35
if ( pipeIndex < 0 )
36
36
{
37
37
match = match . NextMatch ( ) ;
@@ -40,7 +40,7 @@ public Task<TemplateRenderContext> ParseAsync(string text)
40
40
41
41
// exact pipes
42
42
pipeValue = pipeValue [ pipeIndex ..] . Trim ( ) ;
43
- var pipeInputs = pipeValue ! . Split ( [ '|' ] , StringSplitOptions . RemoveEmptyEntries ) ;
43
+ var pipeInputs = pipeValue . Split ( [ '|' ] , StringSplitOptions . RemoveEmptyEntries ) ;
44
44
pipes = pipeInputs . Select ( p =>
45
45
{
46
46
var pipeName = p . Trim ( ) ;
You can’t perform that action at this time.
0 commit comments