Skip to content

Commit efb949e

Browse files
committed
Updates to follow style conventions
1 parent 2829487 commit efb949e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AngleSharp.Js/Extensions/EngineExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static JsValue ToJsValue(this Object obj, EngineInstance engine)
4848
switch (obj)
4949
{
5050
case DocumentReadyState _:
51-
string name = ((Enum)obj).GetOfficialName();
51+
var name = ((Enum)obj).GetOfficialName();
5252
if (name != null)
5353
{
5454
return new JsValue(name);

src/AngleSharp.Js/Extensions/ReflectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static String GetOfficialName(this Enum value)
9494

9595
// if the enum value does not have a DomNameAttribute, calling member.GetOfficialName() would return the value name
9696
// to allow previous behaviour to be preserved, if the DomNameAttribute is not present then null will be returned
97-
IEnumerable<DomNameAttribute> names = member.GetCustomAttributes<DomNameAttribute>();
97+
var names = member.GetCustomAttributes<DomNameAttribute>();
9898
var officialNameAttribute = names.FirstOrDefault();
9999
return officialNameAttribute?.OfficialName;
100100
}

0 commit comments

Comments
 (0)