mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-24 07:51:48 +00:00
bulk code format fix (#8707)
This commit is contained in:
@@ -3,7 +3,7 @@ export function fromUTF8Array(data: BufferSource): string {
|
||||
return decoder.decode(data);
|
||||
}
|
||||
|
||||
export function toUTF8Array(str: string) : Uint8Array {
|
||||
export function toUTF8Array(str: string): Uint8Array {
|
||||
const encoder = new TextEncoder();
|
||||
return encoder.encode(str);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user