Skip to content

Commit

Permalink
string-slices are already handled.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed May 16, 2024
1 parent 8c7d539 commit 7eb6633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/external.toit
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Client:
/** Helper to convert the $message to a string or ByteArray. */
encode-message_ message/io.Data --copy/bool -> io.Data:
bytes/ByteArray := ?
if message is string and message is not StringSlice_:
if message is string:
return message
if not copy and message is ByteArray:
return message
Expand Down

0 comments on commit 7eb6633

Please sign in to comment.