Skip to content

Commit

Permalink
Remove unused null check in Bytes.getString
Browse files Browse the repository at this point in the history
  • Loading branch information
limepoutine authored Feb 24, 2025
1 parent b0b2997 commit 7f22a2b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions std/haxe/io/Bytes.hx
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,6 @@ class Bytes {
interpreted with the given `encoding` (UTF-8 by default).
**/
public function getString(pos:Int, len:Int, ?encoding:Encoding):String {
if (encoding == null)
encoding == UTF8;
#if !neko
if (pos < 0 || len < 0 || pos + len > length)
throw Error.OutsideBounds;
Expand Down

0 comments on commit 7f22a2b

Please sign in to comment.