Skip to content

Commit

Permalink
Remove TODO on throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesqo authored Jul 5, 2016
1 parent a64020c commit 467f06d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/mscorlib/src/System/Text/EncodingForwarder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ public unsafe static int GetBytes(Encoding encoding, string s, int charIndex, in
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];

Expand Down

0 comments on commit 467f06d

Please sign in to comment.