Skip to content

Commit

Permalink
toBytes no longer validates
Browse files Browse the repository at this point in the history
If you already have a UuidValue, `toBytes` should succeed if at all possible
  • Loading branch information
Erhannis authored and daegalus committed Aug 30, 2023
1 parent 54ccdce commit 14cb91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/uuid_value.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class UuidValue {

// toBytes() converts the internal string representation to a list of bytes.
Uint8List toBytes() {
return UuidParsing.parseAsByteList(uuid);
return UuidParsing.parseAsByteList(uuid, validate: false);
}

// toString() returns the String representation of the UUID
Expand Down

0 comments on commit 14cb91c

Please sign in to comment.