diff options
author | Marco Rossignoli <marco.rossignoli@gmail.com> | 2018-07-18 12:43:02 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-07-18 03:43:02 -0700 |
commit | cc52c67f5a0a26194c42fbd1b59e284d6727635a (patch) | |
tree | ebaa20e3de95eb1f35837d9d335e323030ba9509 /src | |
parent | fb37382267a5e015769a3b4ef127e5544fe642c7 (diff) | |
download | coreclr-cc52c67f5a0a26194c42fbd1b59e284d6727635a.tar.gz coreclr-cc52c67f5a0a26194c42fbd1b59e284d6727635a.tar.bz2 coreclr-cc52c67f5a0a26194c42fbd1b59e284d6727635a.zip |
Remove unuseful null check on Activator.CreateInstance (#18806)
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Activator.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/System.Private.CoreLib/src/System/Activator.cs b/src/System.Private.CoreLib/src/System/Activator.cs index eb0e6d6c7d..c2197d4c3b 100644 --- a/src/System.Private.CoreLib/src/System/Activator.cs +++ b/src/System.Private.CoreLib/src/System/Activator.cs @@ -149,11 +149,7 @@ namespace System } if (type == null) - { - // It's classic managed type (not WinRT type) - if (assembly == null) - return null; - + { type = assembly.GetType(typeName, true /*throwOnError*/, ignoreCase); } |