Fix overly long line

This commit is contained in:
Simon Binder 2022-07-29 19:05:42 +02:00
parent cf95ed6f05
commit c69b34278b
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 5 additions and 2 deletions

View File

@ -227,8 +227,11 @@ class _SqliteVersionConverter extends JsonConverter<SqliteVersion, String> {
SqliteVersion fromJson(String json) {
final match = _versionRegex.firstMatch(json);
if (match == null) {
throw ArgumentError.value(json, 'json',
'Not a valid sqlite version: Expected format major.minor (e.g. 3.34)');
throw ArgumentError.value(
json,
'json',
'Not a valid sqlite version: Expected format major.minor (e.g. 3.34)',
);
}
final major = int.parse(match.group(1)!);