Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Sep 11, 2023
1 parent 9b2e191 commit dc34797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/messages_deserializer/lib/src/deserializer_json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class JsonDeserializer extends Deserializer<MessageListJson> {
MessageListJson deserialize(IntlObject intl) {
if (_parsed[0] != VERSION) {
throw ArgumentError(
'This message has version ${_parsed[0]}, while the deserializer has version $VERSION');
'''This message has version ${_parsed[0]}, while the deserializer has version $VERSION''');
}
for (var i = jsonPreambleLength; i < _parsed.length; i++) {
_messages.add(getMessage(_parsed[i], true));
Expand Down
3 changes: 2 additions & 1 deletion pkgs/messages_serializer/test/messages_serializer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ void serializeThenDeserialize<T>(
final hash = 'testhash';
final locale = 'de_DE';
final serialized = serializer().serialize(hash, locale, messages);
final deserialized = deserializer(serialized.data).deserialize(OldIntlObject());
final deserialized =
deserializer(serialized.data).deserialize(OldIntlObject());
expect(deserialized.hash, hash);
expect(deserialized.locale, locale);
if (deserialized is MessageListJson) {
Expand Down

0 comments on commit dc34797

Please sign in to comment.