File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
src/ImageSharp.Web/Commands/Converters Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1- // Copyright (c) Six Labors.
1+ // Copyright (c) Six Labors.
22// Licensed under the Apache License, Version 2.0.
33
44using System ;
55using System . Collections . Generic ;
66using System . Globalization ;
7- using System . Linq ;
87
98namespace SixLabors . ImageSharp . Web . Commands . Converters
109{
@@ -16,11 +15,6 @@ internal sealed class ArrayConverter<T> : ListConverter<T>
1615 {
1716 /// <inheritdoc/>
1817 public override object ConvertFrom ( CultureInfo culture , string value , Type propertyType )
19- {
20- object result = base . ConvertFrom ( culture , value , propertyType ) ;
21-
22- var list = result as IList < T > ;
23- return list ? . ToArray ( ) ?? result ;
24- }
18+ => ( ( List < T > ) base . ConvertFrom ( culture , value , propertyType ) ) . ToArray ( ) ;
2519 }
26- }
20+ }
You can’t perform that action at this time.
0 commit comments