@@ -53,7 +53,7 @@ public override Priority GetPriority(string fileName, IEnumerable<ILogLine> samp
5353 if ( json != null )
5454 {
5555 var columns = SplitJsonLine ( samples . First ( ) , json ) ;
56- if ( columns . ColumnValues . Count ( ) > 0 && Array . Exists ( columns . ColumnValues , x => ! string . IsNullOrEmpty ( x . FullValue ) ) )
56+ if ( columns . ColumnValues . Length > 0 && Array . Exists ( columns . ColumnValues , x => ! string . IsNullOrEmpty ( x . FullValue ) ) )
5757 {
5858 result = Priority . PerfectlySupport ;
5959 }
@@ -85,10 +85,10 @@ public override Priority GetPriority(string fileName, IEnumerable<ILogLine> samp
8585
8686 protected override IColumnizedLogLine SplitJsonLine ( ILogLine line , JObject json )
8787 {
88- List < IColumn > returnColumns = new ( ) ;
88+ List < IColumn > returnColumns = [ ] ;
8989 var cLogLine = new ColumnizedLogLine { LogLine = line } ;
9090
91- var columns = json . Properties ( ) . Select ( property => new ColumnWithName { FullValue = property . Value . ToString ( ) , ColumneName = property . Name . ToString ( ) , Parent = cLogLine } ) . ToList ( ) ;
91+ var columns = json . Properties ( ) . Select ( property => new ColumnWithName { FullValue = property . Value . ToString ( ) , ColumnName = property . Name . ToString ( ) , Parent = cLogLine } ) . ToList ( ) ;
9292
9393 //
9494 // Always rearrage the order of all json fields within a line to follow the sequence of columnNameList.
@@ -98,7 +98,7 @@ protected override IColumnizedLogLine SplitJsonLine(ILogLine line, JObject json)
9898 {
9999 if ( column . StartsWith ( '@' ) )
100100 {
101- var existingColumn = columns . Find ( x => x . ColumneName == column ) ;
101+ var existingColumn = columns . Find ( x => x . ColumnName == column ) ;
102102
103103 if ( existingColumn != null )
104104 {
@@ -111,7 +111,7 @@ protected override IColumnizedLogLine SplitJsonLine(ILogLine line, JObject json)
111111 }
112112 }
113113
114- cLogLine . ColumnValues = returnColumns . ToArray ( ) ;
114+ cLogLine . ColumnValues = [ .. returnColumns ] ;
115115
116116 return cLogLine ;
117117 }
0 commit comments