Simplify 'default' expression (IDE0034)
This commit is contained in:
committed by
Matthias Mailänder
parent
02d9ba020d
commit
858d782af1
@@ -112,7 +112,7 @@ namespace OpenRA
|
||||
else
|
||||
throw new InvalidOperationException($"Cannot locate type: {className}");
|
||||
|
||||
return default(T);
|
||||
return default;
|
||||
}
|
||||
|
||||
var ctor = ctorCache[type];
|
||||
|
||||
Reference in New Issue
Block a user