This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Remove unnecessary null check.
pull/785/head
AntiTcb
8 years ago
parent
104e898d88
commit
7493674942
1 changed files
with
0 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-2
src/Discord.Net.Commands/Readers/NullableTypeReader.cs
+ 0
- 2
src/Discord.Net.Commands/Readers/NullableTypeReader.cs
View File
@@ -9,8 +9,6 @@ namespace Discord.Commands
{
public static TypeReader Create(Type type, TypeReader reader)
{
if (reader == null)
return null;
var constructor = typeof(NullableTypeReader<>).MakeGenericType(type).GetTypeInfo().DeclaredConstructors.First();
return (TypeReader)constructor.Invoke(new object[] { reader });
}
Write
Preview
Loading…
Cancel
Save