Remove TODO on throwing exception
authorJames Ko <jamesqko@gmail.com>
Tue, 5 Jul 2016 16:45:15 +0000 (12:45 -0400)
committerGitHub <noreply@github.com>
Tue, 5 Jul 2016 16:45:15 +0000 (12:45 -0400)
Commit migrated from https://github.com/dotnet/coreclr/commit/467f06d6f01deb4905a901a9d337a8dfdef817e1

src/coreclr/src/mscorlib/src/System/Text/EncodingForwarder.cs

index 7bc217d..d4bcf80 100644 (file)
@@ -130,9 +130,6 @@ namespace System.Text
             int byteCount = bytes.Length - byteIndex;
 
             // Fixed doesn't like empty arrays
-            // TODO: Consider just throwing an
-            // exception here instead of allocating
-            // a new array, if (byteCount == 0)
             if (bytes.Length == 0)
                 bytes = new byte[1];