Skip to content

Commit 8ba84b7

Browse files
committed
Remove smole tests
Small style fixes
1 parent 64166f8 commit 8ba84b7

File tree

2 files changed

+1
-53
lines changed

2 files changed

+1
-53
lines changed

src/Microsoft.ML.LightGBM/LightGbmArguments.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,14 @@ public virtual void UpdateParameters(Dictionary<string, object> res)
5959
FieldInfo[] fields = Args.GetType().GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
6060
foreach (var field in fields)
6161
{
62-
var attribute = GetAttribute(field);
62+
var attribute = field.GetCustomAttribute<ArgumentAttribute>(false);
6363

6464
if (attribute == null)
65-
{
6665
continue;
67-
}
6866

6967
res[GetArgName(field.Name)] = field.GetValue(Args);
7068
}
7169
}
72-
73-
private ArgumentAttribute GetAttribute(FieldInfo field)
74-
{
75-
return field.GetCustomAttribute<ArgumentAttribute>(false);
76-
}
7770
}
7871

7972
private static string GetArgName(string name)

test/Microsoft.ML.Predictor.Tests/SmokeTests.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)