Skip to content

Commit fb0b30d

Browse files
committed
Fixing spacing around parenthesis & spaces->tabs
1 parent 37e39a0 commit fb0b30d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

RestSharp/Extensions/ReflectionExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ public static object FindEnumValue(this Type type, string value, CultureInfo cul
9494
#if FRAMEWORK
9595
var ret = Enum.GetValues( type )
9696
.Cast<Enum>()
97-
.FirstOrDefault( v => v.ToString().GetNameVariants( culture ).Contains( value, StringComparer.Create( culture, true ) ) );
97+
.FirstOrDefault(v => v.ToString().GetNameVariants(culture).Contains(value, StringComparer.Create(culture, true)));
9898

99-
if ( ret == null )
99+
if (ret == null)
100100
{
101101
int enumValueAsInt;
102-
if ( Int32.TryParse( value, out enumValueAsInt ) && Enum.IsDefined( type, enumValueAsInt ) )
102+
if (Int32.TryParse(value, out enumValueAsInt) && Enum.IsDefined(type, enumValueAsInt))
103103
{
104-
ret = (Enum) Enum.ToObject( type, enumValueAsInt );
105-
}
104+
ret = (Enum) Enum.ToObject(type, enumValueAsInt);
105+
}
106106
}
107107

108108
return ret;

0 commit comments

Comments
 (0)