dart format

This commit is contained in:
MineTec committed 2026-05-08 20:12:40 +02:00
1 parent 9e139b5704
commit 3b8da1d3d6
295 files changed
+6404 -4161

No files matched your search

@@ -20,9 +20,13 @@ class AutocompleteApi {
);
final response = await http.get(endpoint, headers: NextcloudOcs.headers());
if (response.statusCode != HttpStatus.ok) {
throw Exception('Api call failed with ${response.statusCode}: ${response.body}');
throw Exception(
'Api call failed with ${response.statusCode}: ${response.body}',
);
}
final decoded = jsonDecode(response.body) as Map<String, dynamic>;
return AutocompleteResponse.fromJson(decoded['ocs'] as Map<String, dynamic>);
return AutocompleteResponse.fromJson(
decoded['ocs'] as Map<String, dynamic>,
);
}
}